@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.btn-shake {
    animation: shake 0.5s ease-in-out infinite;
}

/* Item count is independent of the optional necklace personalization block. */
#custom_order_form .co-quantity-selector {
    margin: 16px 0 20px;
    text-align: center;
}
#custom_order_form .co-quantity-selector label {
    display: block;
    margin: 0 0 8px;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    color: #79592f;
    text-align: center;
}
#custom_order_form .co-quantity-stepper {
    display: grid;
    grid-template-columns: 52px minmax(48px, 1fr) 52px;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    width: 210px;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px;
    border: 1px solid #dbc9ad;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(121, 89, 47, 0.08);
}
#custom_order_form .co-quantity-stepper input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #3b2e20;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    caret-color: transparent;
    pointer-events: none;
    appearance: textfield;
    -moz-appearance: textfield;
}
#custom_order_form .co-quantity-stepper input::-webkit-inner-spin-button,
#custom_order_form .co-quantity-stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#custom_order_form .co-quantity-button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f3eade;
    color: #79592f;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.15s, color 0.15s;
}
#custom_order_form .co-quantity-button:hover:not(:disabled) {
    background: #9d7845;
    color: #fff;
}
#custom_order_form .co-quantity-button:focus-visible {
    outline: 2px solid #79592f;
    outline-offset: 3px;
}
#custom_order_form .co-quantity-button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Compact, single-row tasbih price. */
#product-14103 .summary > .price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    float: none;
    clear: both;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 8px 0 12px;
    padding: 8px 12px;
    border: 1px solid #e7dac6;
    border-radius: 10px;
    background: #fcf9f3;
    box-shadow: none;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
}
#product-14103 .summary > .price::before {
    content: "السعر";
    flex: 0 0 auto;
    align-self: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #79592f;
}
#product-14103 .summary:has(.co-dir-ltr) > .price::before {
    content: "Prix";
}
#product-14103 .summary > .price ins {
    order: 1;
    padding: 0;
    background: transparent;
    text-decoration: none;
}
#product-14103 .summary > .price > .amount,
#product-14103 .summary > .price ins .amount {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: #332411;
}
#product-14103 .summary > .price .amount {
    white-space: nowrap;
}
#product-14103 .summary > .price .woocommerce-Price-currencySymbol {
    font-size: 16px;
    font-weight: 700;
}
#product-14103 .summary > .price del {
    order: 2;
    opacity: 1;
    color: #817568;
    text-decoration: line-through;
}
#product-14103 .summary > .price del .amount {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #817568;
}
#product-14103 .summary > .price del .woocommerce-Price-currencySymbol {
    font-size: 12px;
    font-weight: 400;
}
#product-14103 .summary > .sale-item {
    display: none;
}

/* Delivery-field icons are decorative and keep all original labels and controls. */
#custom_order_form .customer-details {
    --co-icon-user: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22M5%2021v-2a7%207%200%200%201%2014%200v2%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-phone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H4a1%201%200%200%200-1%201c0%209.4%207.6%2017%2017%2017a1%201%200%200%200%201-1v-4l-5-2-2%202a15%2015%200%200%201-6-6l2-2-2-5Z%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-pin: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%206-8%2011-8%2011S4%2016%204%2010a8%208%200%201%201%2016%200Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-map: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%203-6%202v16l6-2%206%202%206-2V3l-6%202-6-2Z%22%2F%3E%3Cpath%20d%3D%22M9%203v16M15%205v16%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-truck: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h11v11H3zM14%2010h4l3%204v3h-7%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-home: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2011%209-8%209%208M5%2010v11h14V10M9%2021v-7h6v7%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-office: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2021v-7h8v7M7%207h10M7%2010h10%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-package: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203-9%204.5v9l9%204.5%209-4.5v-9L12%203ZM3%207.5l9%204.5%209-4.5M12%2012v9M7.5%205.25l9%204.5%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-comment: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a67c45%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011a9%209%200%200%201-9%209H3l2-4a9%209%200%201%201%2016-5ZM8%2010h8M8%2014h5%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-alert: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23d32f2f%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10.3%203.9-8.3%2014.3A2%202%200%200%200%203.7%2021h16.6a2%202%200%200%200%201.7-2.8L13.7%203.9a2%202%200%200%200-3.4%200ZM12%209v5M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
    --co-icon-chevron: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a8a8a8%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E");
}
#custom_order_form #customerName { --co-field-icon: var(--co-icon-user); }
#custom_order_form #phoneNumber { --co-field-icon: var(--co-icon-phone); }
#custom_order_form #wilaya { --co-field-icon: var(--co-icon-pin); }
#custom_order_form #baladia { --co-field-icon: var(--co-icon-map); }
#custom_order_form #center { --co-field-icon: var(--co-icon-office); }
#custom_order_form #order-comment { --co-field-icon: var(--co-icon-comment); }
#custom_order_form .customer-details :is(#customerName, #phoneNumber, #order-comment, #wilaya, #baladia, #center) {
    background-image: var(--co-field-icon);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px 20px;
    padding-right: 44px;
}
#custom_order_form .customer-details :is(#wilaya, #baladia, #center) {
    background-image: var(--co-field-icon), var(--co-icon-chevron);
    background-position: right 14px center, left 12px center;
    background-size: 20px 20px, 12px 12px;
    padding-left: 30px;
}
.co-dir-ltr #custom_order_form .customer-details :is(#customerName, #phoneNumber, #order-comment, #wilaya, #baladia, #center) {
    background-position: left 14px center;
    padding-left: 44px;
    padding-right: 14px;
}
.co-dir-ltr #custom_order_form .customer-details :is(#wilaya, #baladia, #center) {
    background-position: left 14px center, right 12px center;
    padding-right: 30px;
}
#custom_order_form .customer-details h4 { --co-field-icon: var(--co-icon-package); }
#custom_order_form #shippingProviderGroup label { --co-field-icon: var(--co-icon-truck); }
#custom_order_form label[for="homeDelivery"] { --co-field-icon: var(--co-icon-home); }
#custom_order_form label[for="desktopDelivery"] { --co-field-icon: var(--co-icon-office); }
#custom_order_form #warningMessage { --co-field-icon: var(--co-icon-alert); }
#custom_order_form .customer-details h4::before,
#custom_order_form #shippingProviderGroup label::before,
#custom_order_form label[for="homeDelivery"]::before,
#custom_order_form label[for="desktopDelivery"]::before,
#custom_order_form #warningMessage::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-inline-end: 8px;
    vertical-align: -4px;
    background: var(--co-field-icon) center / contain no-repeat;
}
#custom_order_form #warningMessage::before {
    width: 17px;
    height: 17px;
}

/* General styling for custom order form */
.custom-order-checkout-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background-color: #ffffff;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
    color: #333;
    position: relative;
    z-index: 1;
}

/* Direction-aware layout: wrapper toggles RTL/LTR */
.co-dir-rtl { direction: rtl; text-align: right; }
.co-dir-ltr { direction: ltr; text-align: left; }

/* Adjust alignment that was hard-coded */
.co-dir-ltr .order-summary { text-align: left; }

/* Radios/labels spacing for RTL */
.co-dir-rtl .form-group input[type="radio"] { margin-left: 10px; margin-right: 0; }
.co-dir-rtl .form-group input[type="radio"] + label { margin-right: 5px; margin-left: 0; }
.co-dir-rtl .necklace-color-options label { margin-right: 5px; margin-left: 0; }

.custom-order-checkout-form h4 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 22px;
    color: #1a1a1a;
    border-bottom: 2px solid #cb0c9f;
    padding-bottom: 5px;
    display: inline-block;
}

.exp-cod-label {
    text-align: center;
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fafafa;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: #cb0c9f;
    outline: none;
}

.form-group input[type="text"]:hover,
.form-group select:hover {
    border-color: #b10b8c;
}

/* Align radio buttons and text to be more compact */
.form-group input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.3);
}

.form-group input[type="radio"] + label {
    display: inline-block;
    margin-left: 5px;
    font-size: 16px;
    color: #333;
    vertical-align: middle;
}

/* Reduce space between checkboxes and labels */
.form-group input[type="checkbox"] + label {
    margin-left: 2px;
}

/* Styling for necklace color options */
.form-group .necklace-color-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.necklace-color-options input[type="radio"] {
    margin-right: 10px;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.necklace-color-options input[type="radio"]:checked {
    border-color: #cb0c9f;
}

.necklace-color-options input[type="radio"].silver {
    background-color: silver;
}

.necklace-color-options input[type="radio"].gold {
    background-color: gold;
}

.necklace-color-options label {
    font-size: 16px;
    color: #1a1a1a;
    margin-left: 5px;
}

/* Reduce spacing for the "هل تريد إضافة:" label and its checkboxes */
.form-group.label-checkbox {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
}

.form-group.label-checkbox label {
    display: inline-block; 
    margin-bottom: 3px !important;
}

.form-group.label-checkbox input[type="checkbox"] {
    margin-top: -5px !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
}

.inline-fields {
    display: flex;
    justify-content: space-between;
}

.form-group-half {
    width: 48%;
}

#baladia, #wilaya {
    width: 100%;
    padding: 1px 6px;
    border: 2px solid #cb0c9f;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#baladia:hover, #wilaya:hover,
#baladia:focus, #wilaya:focus {
    border-color: #b10b8c;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

/* Ensure label text remains visible and styled */
.form-group label[for="wilaya"], .form-group label[for="baladia"] {
    font-weight: bold;
    font-size: 18px;
    color: #344767;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Additional adjustments for better text alignment */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    padding-right: 20px;
    border-radius: 12px;
}

select.form-control option {
    color: #333;
    font-weight: normal;
    background-color: #fff;
}

/* Styling for a modern, clean look */
body {
    background: linear-gradient(to right, #f8f8f8, #ffffff);
    font-family: 'Poppins', sans-serif;
}

/* Hide alternative provider price row since we now show only the selected provider */
.alt-provider-price { display: none !important; }

#addNecklaceButton {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #344767;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    text-align: center;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

#addNecklaceButton:hover {
    background-color: #2c3b58;
}

.deleteNecklaceButton {
    display: block;
    margin: 10px auto;
    padding: 8px;
    background-color: #ea0606;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.deleteNecklaceButton:hover {
    background-color: #c70505;
}

.order-summary {
    margin-top: 20px;
    text-align: right;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.customer-details {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 25px;
    margin-top: 20px;
}

#totalPrice {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

#co_order_submit,
#co_order_submit_top,
#co_order_submit2 {
    background-color: #cb0c9f;
    color: #ffffff;
    padding: 20px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.2);
}

#co_order_submit {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 20px;
}

#co_order_submit_top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: 20px;
}

#co_order_submit2 {
    margin-top: 10px;
    width: calc(100% - 20px);
}

#co_order_submit:hover,
#co_order_submit_top:hover,
#co_order_submit2:hover {
    background-color: #b10b8c;
    transform: translateY(-2px);
}

/* Style for buttons when an order is being processed */
#co_order_submit.processing,
#co_order_submit_top.processing,
#co_order_submit2.processing,
#co_order_submit[disabled],
#co_order_submit_top[disabled],
#co_order_submit2[disabled] {
    background-color: #8c8c8c !important;
    color: #e0e0e0 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* Extra-small custom radio buttons for delivery type */
#homeDelivery, #desktopDelivery {
    appearance: none;
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid #cb0c9f;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 8px;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tiny inner circle with shine effect */
#homeDelivery:checked::before,
#desktopDelivery:checked::before {
    content: "";
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #f78fb3 30%, #ff91c1 70%);
    border-radius: 50%;
    box-shadow: 0px 0px 3px rgba(255, 145, 193, 0.5);
}

/* Styles for error messages and highlighting fields */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

input.error, select.error, textarea.error {
    border: 2px solid red;
}

input.error:focus, select.error:focus, textarea.error:focus {
    outline: none;
}

.arrow-up {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid red;
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust this value based on your form layout */
}

/* Thank You Page Styles */
.thank-you-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
    background-color: #ffffff;
    border-radius: 8px;
    direction: rtl;
    text-align: center;
}

.thank-you-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.thank-you-container h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
}

.thank-you-container h3 {
    color: #e74c3c;
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.thank-you-message {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

.necklaces-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.necklace-card {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    width: calc(100% - 40px);
    max-width: 400px;
    box-sizing: border-box;
    text-align: right;
}

.necklace-card h4 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 15px;
}

.necklace-card p {
    margin: 5px 0;
    color: #555555;
}

.necklace-card p strong {
    color: #333333;
}

.order-details {
    text-align: right;
    font-size: 18px;
    color: #555555;
    margin-top: 30px;
}

.order-details p {
    margin: 5px 0;
}

.order-details p strong {
    color: #333333;
}

.btn-contact, .btn-home {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background-color: #e74c3c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.btn-contact:hover, .btn-home:hover {
    background-color: #c0392b;
}

.btn-contact i, .btn-home i {
    margin-left: 10px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-order-checkout-wrapper {
        padding: 15px;
    }

    #addNecklaceButton, #co_order_submit, #co_order_submit_top, #co_order_submit2 {
        font-size: 16px;
        padding: 12px;
    }

    #totalPrice {
        font-size: 18px;
    }

    .thank-you-container {
        padding: 15px;
    }

    .thank-you-content {
        padding: 25px;
    }

    .thank-you-container h2 {
        font-size: 28px;
    }

    .thank-you-container h3 {
        font-size: 24px;
    }

    .btn-contact, .btn-home {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .thank-you-container h2 {
        font-size: 24px;
    }

    .thank-you-container h3 {
        font-size: 20px;
    }

    .necklace-card {
        width: 100%;
        margin: 10px 0;
    }
}

/* Additional body styles */
body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .product-title {
        font-size: 20px;
    }

    .button {
        padding: 10px 15px;
    }
}

/* Social proof container */
.social-proof-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-proof-container img {
    width: auto;
    max-width: 100%;
    height: auto;
}
/* Styles for error messages and highlighting fields */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

input.error, select.error, textarea.error {
    border: 2px solid red;
}

input.error:focus, select.error:focus, textarea.error:focus {
    outline: none;
}

.arrow-up {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid red;
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust as needed based on your form layout */
}

/* Styles for error messages and highlighting fields */
#custom_order_form .error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

#custom_order_form input.error,
#custom_order_form select.error,
#custom_order_form textarea.error {
    border: 2px solid red !important;
}

#custom_order_form input.error:focus,
#custom_order_form select.error:focus,
#custom_order_form textarea.error:focus {
    outline: none;
}
/* Adjust styles for error message within form-group */
.form-group .error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Adjust arrow-up positioning within form-group */
.form-group .arrow-up {
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust based on your layout */
}
/* Styles for error messages and highlighting fields */
#custom_order_form .error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

#custom_order_form input.error,
#custom_order_form select.error,
#custom_order_form textarea.error {
    border: 2px solid red !important;
}

#custom_order_form input.error:focus,
#custom_order_form select.error:focus,
#custom_order_form textarea.error:focus {
    outline: none;
}

#custom_order_form .arrow-up {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid red;
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust as needed based on your form layout */
}
arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
  position  : 10px solid red;
    border-top: absolute;
    /* Adjust the positioning to align the arrow */
   top : calc(100% - 10px); /* Positions the arrow below the field */
    right: 10px; /* Adjust as needed */
}

/* Rectangle Number Selector Styles for Alternative Models */
.number-selector-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-start;
}

.number-box {
    border: 2px solid #ccc;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: -1px;
    transition: all 0.3s ease;
    border-radius: 4px;
    background-color: #fff;
    user-select: none;
    text-align: center;
    line-height: 1;
}

.number-box:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.number-box.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
}

.number-box.selected:hover {
    background-color: #0056b3;
    transform: scale(1.05) translateY(-1px);
}

.model-selection {
    margin-bottom: 15px;
}

.model-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Product Additions Section Styles */
.additions-section {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.additions-section label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.checkbox-group {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
}

.checkbox-group:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
    padding: 2px 4px;
}

/* Add glowing border and pulsing animation */
#flower {
    border: 2px solid #ff6600; /* Initial border color */
    animation: pulseGlow 1.5s infinite; /* Pulsing animation */
    box-shadow: 0 0 10px #ff6600; /* Glow effect */
    transition: box-shadow 0.3s ease;
}

/* Pulsing animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px #ff6600;
    }
    50% {
        box-shadow: 0 0 20px #ffcc66;
    }
}

/* Highlight error state */
#flower.error {
    border: 2px solid #ff0000; /* Red border for error */
    box-shadow: 0 0 10px #ff0000; /* Red glow effect */
}

/* Spinner styling for order buttons */
#co_order_submit_loader, 
#co_order_submit_loader2 {
    display: inline-block;
    margin-left: 5px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   JOE BIJOUX BRAND SKIN  (added on top of the rules above)
   Navy + silver identity, one field per row on phones, tap-friendly choices.
   Everything is scoped to the order form, so it can be removed by deleting
   this block.
   ========================================================================== */

.custom-order-checkout-wrapper,
#custom_order_form {
  --co-ink: #0b0f1c;
  --co-navy: #16264a;
  --co-navy-deep: #101b36;
  --co-silver: #c3c9d4;
  --co-mist: #eef0f4;
  --co-soft: #f4f6f9;
  --co-line: #dfe3ea;
  --co-muted: #5a6275;
  --co-bad: #b3261e;
  --co-font: var(--font-body, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
}

/* The old rules forced their own fonts/background on every page that loads this stylesheet: give it back to the theme. */
body.theme-joe-bijoux-theme {
  font-family: var(--font-body, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
  font-size: 16px;
  background: var(--paper, #fafbfc);
}
body.theme-joe-bijoux-theme :is(h1, h2, h3) { font-family: var(--font-head, Georgia, 'Times New Roman', serif); }
body.theme-joe-bijoux-theme :is(h4, h5, h6) { font-family: inherit; }
/* The sticky order button sits at the bottom of the screen: leave room so it never hides the footer. */
body.theme-joe-bijoux-theme:has(#co_order_submit) { padding-bottom: 76px; }

/* The order form replaces the normal "Add to cart" box on these products. */
.summary:has(.custom-order-checkout-wrapper) > form.cart,
.summary:has(.custom-order-checkout-wrapper) > .ppc-button-wrapper { display: none !important; }

/* Brand icons (navy / slate instead of gold) */
#custom_order_form .customer-details {
  --co-icon-user: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22M5%2021v-2a7%207%200%200%201%2014%200v2%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-phone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H4a1%201%200%200%200-1%201c0%209.4%207.6%2017%2017%2017a1%201%200%200%200%201-1v-4l-5-2-2%202a15%2015%200%200%201-6-6l2-2-2-5Z%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-pin: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%206-8%2011-8%2011S4%2016%204%2010a8%208%200%201%201%2016%200Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-map: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%203-6%202v16l6-2%206%202%206-2V3l-6%202-6-2Z%22%2F%3E%3Cpath%20d%3D%22M9%203v16M15%205v16%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-truck: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h11v11H3zM14%2010h4l3%204v3h-7%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-home: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2011%209-8%209%208M5%2010v11h14V10M9%2021v-7h6v7%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-office: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2021v-7h8v7M7%207h10M7%2010h10%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-package: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203-9%204.5v9l9%204.5%209-4.5v-9L12%203ZM3%207.5l9%204.5%209-4.5M12%2012v9M7.5%205.25l9%204.5%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-comment: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2316264a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011a9%209%200%200%201-9%209H3l2-4a9%209%200%201%201%2016-5ZM8%2010h8M8%2014h5%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-alert: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b3261e%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10.3%203.9-8.3%2014.3A2%202%200%200%200%203.7%2021h16.6a2%202%200%200%200%201.7-2.8L13.7%203.9a2%202%200%200%200-3.4%200ZM12%209v5M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
  --co-icon-chevron: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235a6275%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E");
}

/* ---------- card ---------- */
.custom-order-checkout-wrapper {
  padding: 18px 16px 22px;
  border: 1px solid var(--co-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 27, 54, 0.08);
  font-family: var(--co-font);
  color: var(--co-ink);
}
@media (min-width: 600px) {
  .custom-order-checkout-wrapper { padding: 24px 24px 28px; }
}

/* language switch: two small pills */
.co-lang-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0;           /* hides the "|" between the links */
  line-height: 1;
}
.co-lang-switcher a {
  padding: 7px 13px;
  border: 1px solid var(--co-line);
  border-radius: 999px;
  background: #fff;
  color: var(--co-muted);
  font: 700 12px/1 var(--co-font);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.co-dir-rtl .co-lang-switcher a:first-child,
.co-dir-ltr .co-lang-switcher a:last-child {
  border-color: var(--co-navy);
  background: var(--co-navy);
  color: #fff;
}

/* ---------- headings ---------- */
#custom_order_form h4 {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--co-line);
  background: linear-gradient(var(--co-navy), var(--co-navy)) left bottom / 48px 2px no-repeat;
  font: 700 18px/1.3 var(--co-font);
  color: var(--co-ink);
  text-align: start;
}
.co-dir-rtl #custom_order_form h4 { background-position: right bottom; }
#custom_order_form .customer-details h4::before { flex: none; }

/* ---------- necklace block ---------- */
#custom_order_form .necklace-block + .necklace-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--co-silver);
}
#custom_order_form .form-group { margin: 0 0 16px; }
#custom_order_form .form-group > label,
#custom_order_form .form-group label[for="necklaceName"] {
  display: block;
  margin: 0 0 8px;
  font: 600 14px/1.4 var(--co-font);
  color: var(--co-ink);
  letter-spacing: 0;
  text-transform: none;
}

/* colour choice: two clear tap targets, each with a real colour swatch (no more overlapping circles) */
#custom_order_form .necklace-color-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  justify-content: stretch;
}
#custom_order_form .necklace-color-options > label:first-child {
  grid-column: 1 / -1;
  margin: 0;
}
#custom_order_form .necklace-color-options > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: none;
}
#custom_order_form .necklace-color-options > input[type="radio"] + label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--co-line);
  border-radius: 14px;
  background: #fff;
  font: 600 15px/1.25 var(--co-font);
  color: var(--co-ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
#custom_order_form .necklace-color-options > input[type="radio"] + label::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--co-swatch, #ccc);
  box-shadow: inset 0 0 0 1px rgba(11, 15, 28, 0.18);
}
#custom_order_form .necklace-color-options > input.silver + label {
  --co-swatch: linear-gradient(135deg, #ffffff 0%, #c3c9d4 55%, #8d96a5 100%);
}
#custom_order_form .necklace-color-options > input.gold + label {
  --co-swatch: linear-gradient(135deg, #fff1b8 0%, #e0b84a 55%, #a97f1f 100%);
}
#custom_order_form .necklace-color-options > input[type="radio"] + label:hover {
  border-color: var(--co-silver);
}
#custom_order_form .necklace-color-options > input[type="radio"]:checked + label {
  border-color: var(--co-navy);
  background: var(--co-mist);
  box-shadow: 0 0 0 3px rgba(22, 38, 74, 0.14);
}
#custom_order_form .necklace-color-options > input[type="radio"]:checked + label::after {
  content: "\2713";
  position: absolute;
  top: -8px;
  inset-inline-end: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--co-navy);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
#custom_order_form .necklace-color-options > input[type="radio"]:focus-visible + label {
  outline: 3px solid #5b7bd5;
  outline-offset: 2px;
}
#custom_order_form .necklace-color-options > input.error + label {
  border-color: var(--co-bad);
}

/* ---------- inputs & selects: one consistent look ---------- */
#custom_order_form :is(input[type="text"], input[type="tel"], input[type="number"], select, textarea) {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1.5px solid var(--co-line);
  border-radius: 14px;
  background-color: #fff;
  box-shadow: none;
  font: 500 16px/1.3 var(--co-font);
  color: var(--co-ink);
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#custom_order_form :is(input[type="text"], input[type="tel"], input[type="number"], select, textarea):hover {
  border-color: var(--co-silver);
}
#custom_order_form :is(input[type="text"], input[type="tel"], input[type="number"], select, textarea):focus {
  border-color: var(--co-navy);
  box-shadow: 0 0 0 3px rgba(22, 38, 74, 0.14);
  outline: none;
}
#custom_order_form ::placeholder { color: #7b8296; font-weight: 400; opacity: 1; }
#custom_order_form select option { color: var(--co-ink); font-weight: 400; background: #fff; }
#custom_order_form #wilaya,
#custom_order_form #baladia { font-weight: 600; box-shadow: none; }
/* selects: slightly smaller text and a tighter chevron side, so long names show in full */
#custom_order_form .customer-details :is(#wilaya, #baladia, #center) { font-size: 15px; padding-left: 26px; }
.co-dir-ltr #custom_order_form .customer-details :is(#wilaya, #baladia, #center) { padding-right: 26px; }

/* ---------- delivery information card ---------- */
#custom_order_form .customer-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 16px;
  border: 1px solid var(--co-line);
  border-radius: 20px;
  background: var(--co-soft);
}
#custom_order_form .customer-details > * { margin: 0; }
#custom_order_form .customer-details .form-group { margin: 0; }
#custom_order_form .customer-details .inline-fields {
  display: flex;
  flex-direction: column;   /* one field per row: names and phone numbers are never squeezed */
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 14px;
}
#custom_order_form .customer-details .form-group-half { width: 100%; }
#custom_order_form #phoneError {
  margin: 6px 2px 0;
  font: 500 13px/1.4 var(--co-font);
  color: var(--co-bad);
}
#custom_order_form .order-comment label:empty { display: none; }
#custom_order_form .customer-details h4 { margin-bottom: 2px; }

/* delivery type: two cards */
#custom_order_form .co-delivery-options {
  display: grid;
  gap: 10px;
}
#custom_order_form .co-delivery-options > br { display: none; }
#custom_order_form .co-delivery-options > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: none;
}
#custom_order_form .co-delivery-options > input[type="radio"] + label {
  position: relative;
  display: block;
  margin: 0;
  padding-block: 14px;
  padding-inline: 14px;
  min-height: 54px;
  border: 1.5px solid var(--co-line);
  border-radius: 14px;
  background: #fff;
  font: 600 14.5px/1.5 var(--co-font);
  color: var(--co-ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
#custom_order_form .co-delivery-options > input[type="radio"] + label:hover { border-color: var(--co-silver); }
#custom_order_form .co-delivery-options > input[type="radio"]:checked + label {
  border-color: var(--co-navy);
  background: var(--co-mist);
  box-shadow: 0 0 0 3px rgba(22, 38, 74, 0.14);
}
#custom_order_form .co-delivery-options > input[type="radio"]:checked + label::after {
  content: "\2713";
  position: absolute;
  top: -8px;
  inset-inline-end: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--co-navy);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
#custom_order_form .co-delivery-options > input[type="radio"]:focus-visible + label {
  outline: 3px solid #5b7bd5;
  outline-offset: 2px;
}
/* Yalidine is the only company for now, so the small company badge next to each price is not needed. */
#custom_order_form .provider-badge { display: none; }

/* "choose the wilaya first" notice (the plugin shows/hides it with inline styles) */
#custom_order_form #warningMessage {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdf1f0;
  color: #8f1d16 !important;
  font: 500 13.5px/1.55 var(--co-font) !important;
  text-align: start;
}
#custom_order_form #warningMessage::before { vertical-align: -3px; }

/* ---------- buttons ---------- */
#custom_order_form #addNecklaceButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin: 6px 0 0;
  padding: 0 16px;
  border: 1.5px dashed var(--co-silver);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  font: 600 15px/1 var(--co-font);
  color: var(--co-navy);
}
#custom_order_form #addNecklaceButton::before { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
#custom_order_form #addNecklaceButton:hover { border-color: var(--co-navy); background: var(--co-mist); }
#custom_order_form .deleteNecklaceButton {
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid #efc4c0;
  border-radius: 10px;
  background: #fff;
  font: 600 13px/1.2 var(--co-font);
  color: var(--co-bad);
}
#custom_order_form .deleteNecklaceButton:hover { background: #fdf1f0; }

#custom_order_form .order-summary {
  margin-top: 22px;
  padding: 18px 16px;
  border: 1px solid var(--co-line);
  border-radius: 20px;
  background: #fff;
  text-align: start;
}
#custom_order_form #totalPrice {
  margin: 0 0 14px;
  font: 700 20px/1.3 var(--co-font);
  color: var(--co-ink);
}
#custom_order_form #promoDiscount { margin: 0 0 6px; font: 500 14px/1.4 var(--co-font); color: #1a7f4b; }

#co_order_submit,
#co_order_submit_top,
#co_order_submit2 {
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d3266 0%, #101b36 100%);
  box-shadow: 0 10px 22px rgba(16, 27, 54, 0.28);
  font: 700 16px/1.2 var(--co-font, inherit);
  letter-spacing: 0.06em;
  color: #fff;
}
#co_order_submit2 { display: block; width: 100%; margin-top: 4px; }
#co_order_submit:hover,
#co_order_submit_top:hover,
#co_order_submit2:hover { background: var(--co-navy-deep, #101b36); transform: none; }
#co_order_submit.btn-shake { animation: none; }
/* sticky bar: full width, no rounded corners, safe on phones with a gesture bar */
#co_order_submit,
#co_order_submit_top {
  border-radius: 0;
  box-shadow: 0 -8px 24px rgba(11, 15, 28, 0.2);
}
#co_order_submit { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ---------- small phones: less padding in the boxes so fields and texts get the width ---------- */
@media (max-width: 480px) {
  .custom-order-checkout-wrapper { padding: 16px 12px 20px; }
  #custom_order_form .customer-details,
  #custom_order_form .order-summary { padding: 16px 12px; }
  #custom_order_form .co-delivery-options > input[type="radio"] + label { padding-inline: 12px; }
}

/* ---------- error states ---------- */
#custom_order_form .error-message { color: var(--co-bad); font-size: 13px; }
#custom_order_form input.error,
#custom_order_form select.error,
#custom_order_form textarea.error {
  border: 1.5px solid var(--co-bad) !important;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

/* ---------- optional blocks (quantity, models) in brand colours ---------- */
#custom_order_form .co-quantity-selector label {
  font: 700 16px/1.4 var(--co-font);
  color: var(--co-ink);
}
#custom_order_form .co-quantity-stepper {
  border-color: var(--co-line);
  border-radius: 16px;
  box-shadow: none;
}
#custom_order_form .co-quantity-stepper input {
  height: 48px;
  padding: 0;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  font-family: var(--co-font);
  font-size: 22px;
  color: var(--co-ink);
}
#custom_order_form .co-quantity-button { background: var(--co-mist); color: var(--co-navy); }
#custom_order_form .co-quantity-button:hover:not(:disabled) { background: var(--co-navy); color: #fff; }
#custom_order_form .co-quantity-button:focus-visible { outline-color: var(--co-navy); }
.number-box:hover { border-color: var(--co-navy, #16264a); }
.number-box.selected,
.number-box.selected:hover {
  background-color: var(--co-navy, #16264a);
  border-color: var(--co-navy, #16264a);
  box-shadow: 0 0 10px rgba(22, 38, 74, 0.3);
}
.additions-section { border-color: var(--co-line, #dfe3ea); background: var(--co-soft, #f4f6f9); }

/* ---------- thank-you page (shown after an order) ---------- */
.thank-you-container {
  max-width: 720px;
  margin: 32px auto;
  padding: 8px;
  background: transparent;
  font-family: var(--font-body, inherit);
}
.thank-you-content {
  padding: 28px 20px;
  border: 1px solid #dfe3ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 27, 54, 0.08);
}
.thank-you-container h2 { font-size: 28px; color: #0b0f1c; }
.thank-you-container h3 { margin: 28px 0 14px; font-size: 20px; color: #16264a; }
.thank-you-message { font-size: 17px; color: #5a6275; }
.necklace-card { border-color: #dfe3ea; border-radius: 14px; }
.necklace-card h4 { color: #16264a; }
.necklace-card p strong,
.order-details p strong { color: #0b0f1c; }
.btn-contact,
.btn-home { border-radius: 14px; background: #16264a; font-size: 16px; }
.btn-contact:hover,
.btn-home:hover { background: #101b36; }
