/* Ardux Checkout Styles
   19.10.2026 (redesign etapa 5): culorile fixe au devenit tokenii din ld-tokens.css (--red, --ink,
   --muted, --rule, --bench, --ok, --err-bg); grila pe doua coloane, sumarul lipit si restul
   stilului nou sunt in css/ld-checkout.css, incarcat dupa acest fisier. */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--bench);
}

/* fonturile site-ului (16.10.2026): butoanele si campurile mostenesc textul,
   titlurile de sectiune, logo-ul, totalul si butoanele mari sunt in Archivo */
button, input, select, textarea { font-family: inherit; }
.section-title, .ardux-logo h1, .ardux-login-title, .ardux-grand-total .ardux-summary-value,
.ardux-button, .ardux-place-order-button, .ardux-coupon-button, .button {
    font-family: var(--f-display, "Archivo", "Arial Narrow", system-ui, sans-serif);
    font-weight: 800;
    font-stretch: 85%;
    letter-spacing: .005em;
}

body.ardux-checkout-page {
    min-height: 100vh;
}

/* Header Styles */
.ardux-checkout-header {
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 15px 0;
    margin-bottom: 20px;
}

.ardux-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ardux-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ardux-logo-section {
    flex: 1;
}

.ardux-logo {
    display: inline-block;
    text-decoration: none;
}

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

.ardux-logo h1 {
    margin: 0;
    font-size: 24px;
    color: var(--ink);
}

.ardux-logo h1 a {
    color: var(--ink);
    text-decoration: none;
}

.ardux-logo h1 a:hover {
    color: var(--red);
}

.ardux-account-section {
    flex-shrink: 0;
}

.ardux-account-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ardux-login-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--rule);
}

.ardux-login-link:hover {
    background-color: var(--rule);
    border-color: var(--ink);
    text-decoration: none;
    color: var(--ink);
}

.ardux-login-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.ardux-login-link span {
    font-weight: 500;
}

.ardux-customer-welcome {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--rule);
    background-color: var(--bench);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ardux-customer-welcome:hover {
    background-color: var(--rule);
    border-color: var(--ink);
    color: var(--ink);
}

.ardux-customer-welcome .ardux-login-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
    flex-shrink: 0;
}

.ardux-customer-welcome span {
    font-weight: 500;
    line-height: 1;
}

/* Checkout Page Styles */
.ardux-checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.ardux-page-title h1 {
    color: var(--ink);
    border-bottom: 2px solid var(--rule);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ardux-checkout-placeholder {
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.ardux-checkout-info {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 15px;
    margin: 15px 0;
}

.ardux-cart-items ul {
    list-style-type: disc;
    margin-left: 20px;
}

.ardux-cart-items li {
    margin-bottom: 5px;
}

.ardux-checkout-actions {
    text-align: center;
    margin-top: 20px;
}

.ardux-button {
    background: var(--red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ardux-button:hover {
    background: var(--red-deep);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(209, 52, 49, 0.3);
}

/* Address Form Styles */
.address-guest,
.address-logged-in {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 20px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Address Selection Cards */
.ardux-address-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ardux-address-card {
    border: 2px solid var(--rule);
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ardux-address-card:hover {
    border-color: var(--red);
    box-shadow: 0 2px 8px rgba(209, 52, 49, 0.15);
}

.ardux-address-card-selected {
    border-color: var(--red);
    background: var(--err-bg);
    box-shadow: 0 2px 8px rgba(209, 52, 49, 0.2);
}

.ardux-address-card-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    width: 100%;
    position: relative;
}

/* Delete Address Button */
.ardux-delete-address {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--red-deep);
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ardux-address-card:hover .ardux-delete-address {
    opacity: 0.7;
}

.ardux-delete-address:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

.ardux-delete-address:active {
    transform: scale(0.95);
}

.ardux-address-radio {
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ardux-address-details {
    flex: 1;
    pointer-events: none;
    /* Allow clicks to pass through to label */
}

.ardux-address-details>* {
    pointer-events: auto;
    /* Re-enable pointer events for text selection */
}

.ardux-address-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.ardux-address-contact {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 3px;
}

.ardux-address-street {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 2px;
}

.ardux-address-location {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 2px;
}

.ardux-address-phone {
    font-size: 13px;
    color: var(--muted);
}

.ardux-address-vat {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
    margin-bottom: 3px;
}

/* Add New Address Card */
.ardux-add-new-address-card {
    border-style: dashed;
    border-color: var(--rule);
    background: var(--bench);
}

.ardux-add-new-address-card:hover {
    border-color: var(--red);
    background: var(--err-bg);
}

.ardux-add-new-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
}

.ardux-add-icon {
    width: 20px;
    height: 20px;
    color: var(--red);
}

/* Inline Address Form */
.ardux-address-form-inline {
    background: var(--bench);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--red);
}

/* No Addresses Message */
.ardux-no-addresses-message {
    background: var(--bench);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.ardux-no-addresses-message p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


.ardux-address-form .form-group {
    margin-bottom: 15px;
}

.ardux-address-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ardux-address-form .form-control::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.ardux-address-form .form-control:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(209, 52, 49, 0.1);
}

.ardux-address-form .form-control:focus::placeholder {
    color: #bbb;
}

.ardux-address-form .form-control:hover {
    border-color: #b0b0b0;
}

/* Person Type Selector */
.person-type-selector {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.person-type-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid var(--bench);
    background-color: var(--bench);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.person-type-selector label:hover {
    border-color: var(--rule);
    background-color: var(--rule);
}

.person-type-selector input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.person-type-selector input[type="radio"]:checked+label,
.person-type-selector label:has(input[type="radio"]:checked) {
    border-color: var(--red);
    background-color: var(--rule);
    font-weight: 500;
}

/* Juridica Fields */
.juridica-fields {
    background-color: var(--bench);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--red);
}

/* Section Titles */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 15px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--rule);
}

.juridica-fields .section-title:first-of-type {
    margin-top: 0;
}

.juridica-fields .section-title:not(:first-of-type) {
    margin-top: 25px;
}

/* Fizica Billing Option */
.fizica-billing-option {
    margin-top: 20px;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* Fizica Billing Fields */
.fizica-billing-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

/* Form Row - Two columns */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .form-group:only-child {
    flex: none;
    width: 100%;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid var(--rule);
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 14px;
    color: var(--ink);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(209, 52, 49, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--red);
}

.select2-dropdown {
    border: 1px solid var(--rule);
    border-radius: 4px;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 8px;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--red);
}

/* Shipping Section Styles */
.ardux-order-shipping {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 20px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ardux-shipping-header {
    margin-bottom: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--rule);
}

.ardux-shipping-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.ardux-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ardux-shipping-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border: 2px solid var(--bench);
    background-color: var(--bench);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ardux-shipping-option:hover {
    background-color: var(--rule);
    border-color: var(--rule);
}

.ardux-shipping-option.ardux-option-selected {
    background-color: var(--rule);
    border-color: var(--red);
}

.ardux-shipping-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.ardux-shipping-radio input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.ardux-shipping-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.ardux-shipping-icon img {
    width: auto;
    height: 27px;
    cursor: pointer;
}

.ardux-shipping-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

/* Sameday Locker Display */
#sameday-selected-locker-display {
    background: var(--bench);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 15px;
}

.sameday-locker-info {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
}

.sameday-locker-info strong {
    font-weight: 600;
    color: var(--red);
}

.sameday-locker-address {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.ardux-loading-wrapper {
    margin-top: 15px;
    text-align: center;
    padding: 20px;
}

.ardux-loading img {
    width: 50px;
    height: auto;
}


/* Products Section Styles */
.ardux-order-products {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 20px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ardux-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--rule);
}

.ardux-products-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.ardux-items-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.ardux-products-list {
    margin-bottom: 30px;
}

.ardux-product-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 0 15px;
    align-items: start;
    padding: 12px 15px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.ardux-product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--rule);
}

.ardux-product-image {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--rule);
    grid-column: 1;
    grid-row: 1 / 3;
}

.ardux-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ardux-product-details {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ardux-product-info {
    flex: 1;
}

.ardux-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.ardux-product-name a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ardux-product-name a:hover {
    color: var(--red);
}

.ardux-product-sku {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.ardux-product-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
}

.ardux-product-quantity {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.ardux-product-quantity label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.ardux-qty-input {
    width: 50px;
    padding: 6px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ardux-qty-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(209, 52, 49, 0.1);
}

.ardux-product-total {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ardux-total-label {
    font-size: 11px;
    color: var(--muted);
    padding-top: 3px;
}

.ardux-total-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.ardux-product-actions {
    flex-shrink: 0;
    margin-left: 15px;
}

.ardux-remove-item {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.ardux-remove-item:hover {
    background: var(--err-bg);
    border-color: var(--red);
    color: var(--red);
}

.ardux-remove-icon {
    font-size: 18px;
    line-height: 1;
}

.ardux-remove-text {
    font-weight: 500;
}

/* Order Summary - Fixed at Bottom */
.ardux-order-summary-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--rule);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

.ardux-summary-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 11px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

/* Main row with 3 equal parts */
.ardux-summary-main-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding-bottom: 5px;
}

.ardux-summary-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    gap: 4px;
}

.ardux-summary-item:not(:last-child) {
    border-right: 2px solid var(--rule);
}

.ardux-summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
}

.ardux-summary-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.ardux-summary-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* Grand total styling */
.ardux-grand-total .ardux-summary-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.ardux-grand-total .ardux-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
}

/* Discount row - appears below main row */
/* Coupon card - between the address and the products list */
.ardux-order-coupon {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 16px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ardux-coupon-form,
.ardux-coupon-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ardux-coupon-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.ardux-coupon-input {
    width: 200px;
    padding: 8px 10px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.ardux-coupon-input::placeholder {
    text-transform: none;
    color: #aaa;
}

.ardux-coupon-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(209, 52, 49, 0.1);
}

.ardux-coupon-button {
    background: #fff;
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 3px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ardux-coupon-button:hover {
    background: var(--red);
    color: #fff;
}

.ardux-coupon-button:disabled,
.ardux-coupon-remove:disabled {
    opacity: 0.6;
    cursor: default;
}

.ardux-coupon-applied-code {
    font-size: 14px;
    font-weight: 600;
    color: var(--ok);
}

.ardux-coupon-remove {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
}

.ardux-coupon-remove:hover {
    color: var(--red);
}

.ardux-coupon-message {
    margin-top: 6px;
    font-size: 12px;
}

.ardux-coupon-message-error {
    color: var(--red);
}

.ardux-coupon-message-ok {
    color: var(--ok);
}

.ardux-summary-discount-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 0 15px 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--rule);
}

.ardux-summary-discount-row .ardux-summary-label {
    font-size: 13px;
    color: var(--muted);
}

.ardux-summary-discount-row .ardux-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
}

/* Tax row - appears below main row if needed */
.ardux-summary-tax-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 15px 0;
    margin-top: 8px;
    border-top: 1px solid var(--rule);
}

/* Summary Actions - Place Order Button */
.ardux-summary-actions {
    width: 100%;
    margin-top: 0;
    padding-top: 8px;
    text-align: center;
}

/* Login Popup Styles */
.ardux-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;

    /* Center content */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ardux-login-popup {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ardux-login-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
    line-height: 20px;
}

.ardux-login-close:hover {
    color: var(--ink);
}

.ardux-login-title {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink);
}

.ardux-login-popup .field {
    margin-bottom: 15px;
}

.ardux-login-popup .input-text {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 5px;
    /* Add some spacing since labels are gone */
}

.ardux-login-popup .input-text::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.ardux-login-popup .input-text:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(209, 52, 49, 0.1);
}

.ardux-login-popup .input-text:focus::placeholder {
    color: #bbb;
}

.ardux-login-popup .input-text:hover {
    border-color: #b0b0b0;
}

.ardux-login-popup .actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    justify-content: center;
    align-items: center;
}

.ardux-login-popup .button {
    background: var(--red);
    /* Ardux red */
    color: #fff;
    border: 0;
    padding: 10px 40px;
    /* Larger padding */
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    font-size: 14px;
    width: 100%;
    /* Full width button in centered context or just wide enough? Let's go with wide but max-width */
    max-width: 200px;
}

.ardux-login-popup .button:hover {
    background: var(--red-deep);
}

.ardux-login-popup .forgot-password {
    margin-top: 15px;
    /* Space above */
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.ardux-login-popup .forgot-password:hover {
    text-decoration: underline;
}

.ardux-place-order-button {
    width: 100%;
    max-width: 360px;
    background: var(--red);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ardux-place-order-button:hover {
    background: var(--red-deep);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(209, 52, 49, 0.3);
}

.ardux-place-order-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(209, 52, 49, 0.2);
}

.ardux-place-order-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Add padding to body to prevent content from being hidden behind fixed summary */
body.ardux-checkout-page {
    padding-bottom: 110px;
}

/* Empty Cart */
.ardux-empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.ardux-empty-cart p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 20px;
}

.ardux-continue-shopping {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ardux-continue-shopping:hover {
    background: var(--red-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(209, 52, 49, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .ardux-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ardux-account-links {
        justify-content: center;
    }

    .ardux-checkout-container {
        padding: 0 10px 10px;
    }

    .ardux-login-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .ardux-login-icon {
        width: 14px;
        height: 14px;
    }

    .address-guest,
    .address-logged-in {
        padding: 20px;
    }

    .person-type-selector {
        flex-direction: column;
        gap: 10px;
    }

    .person-type-selector label {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    /* Shipping responsive */
    .ardux-order-shipping {
        padding: 15px;
        margin: 15px 0;
    }

    .ardux-shipping-header h2 {
        font-size: 15px;
    }

    .ardux-shipping-option {
        padding: 10px 12px;
    }

    .ardux-shipping-radio {
        width: 35px;
    }

    .ardux-shipping-radio input[type="radio"] {
        width: 16px;
        height: 16px;
    }

    .ardux-shipping-icon {
        width: 35px;
    }

    .ardux-shipping-icon img {
        width: 22px;
    }

    .ardux-shipping-label {
        font-size: 13px;
    }

    /* Products responsive */
    .ardux-order-products {
        padding: 15px;
        margin: 15px 0;
    }

    .ardux-products-header {
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin-bottom: 12px;
    }

    .ardux-products-header h2 {
        font-size: 15px;
    }

    .ardux-items-count {
        font-size: 12px;
    }

    .ardux-product-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        padding: 10px;
        margin-bottom: 8px;
    }

    .ardux-product-image {
        width: 60px;
        height: 60px;
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .ardux-product-details {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .ardux-product-info {
        flex: 1;
    }

    .ardux-product-name {
        font-size: 13px;
        margin-bottom: 3px;
        line-height: 1.3;
    }

    .ardux-product-sku {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .ardux-product-price {
        font-size: 12px;
    }

    /* Remove button - top right */
    .ardux-product-actions {
        flex-shrink: 0;
        margin-left: 10px;
    }

    .ardux-remove-item {
        padding: 4px 6px;
        font-size: 11px;
        min-width: auto;
    }

    .ardux-remove-icon {
        font-size: 16px;
    }

    .ardux-remove-text {
        display: none;
    }

    /* Quantity and Total on same row */
    .ardux-product-quantity {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
    }

    .ardux-product-quantity label {
        font-size: 11px;
        margin: 0;
    }

    .ardux-qty-input {
        width: 45px;
        padding: 4px;
        font-size: 12px;
    }

    .ardux-product-total {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: auto;
        margin-left: auto;
    }

    .ardux-total-label {
        font-size: 11px;
    }

    .ardux-total-price {
        font-size: 14px;
        font-weight: 700;
    }

    /* Fixed summary responsive */
    .ardux-order-summary-fixed {
        border-top: 1px solid var(--rule);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    .ardux-summary-container {
        padding: 10px 15px;
    }

    /* Stack the 3 items vertically on mobile */
    .ardux-summary-main-row {
        flex-direction: column;
        gap: 0;
    }

    .ardux-summary-item {
        width: 100%;
        padding: 8px 0;
        flex-direction: row;
        justify-content: space-between;
        border-right: none !important;
    }

    .ardux-summary-item:not(:last-child) {
        border-bottom: 1px solid var(--rule);
    }

    .ardux-summary-label {
        font-size: 13px;
    }

    .ardux-summary-value {
        font-size: 14px;
    }

    /* Grand total emphasis on mobile */
    .ardux-grand-total {
        padding-top: 8px;
        border-top: 2px solid var(--red) !important;
        border-bottom: none !important;
    }

    .ardux-grand-total .ardux-summary-label {
        font-size: 15px;
    }

    .ardux-grand-total .ardux-summary-value {
        font-size: 18px;
    }

    /* Discount row on mobile */
    .ardux-order-coupon {
        padding: 14px 15px;
        margin: 15px 0;
    }

    .ardux-coupon-input {
        flex: 1;
        min-width: 120px;
    }

    .ardux-summary-discount-row {
        justify-content: space-between;
        padding: 0 0 8px;
        margin-bottom: 8px;
    }

    .ardux-summary-discount-row .ardux-summary-label {
        font-size: 12px;
    }

    .ardux-summary-discount-row .ardux-summary-value {
        font-size: 13px;
    }

    /* Tax row on mobile */
    .ardux-summary-tax-row {
        justify-content: space-between;
        padding: 8px 0;
        margin-top: 8px;
    }

    .ardux-summary-actions {
        margin-top: 0;
        padding-top: 6px;
    }

    .ardux-place-order-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    body.ardux-checkout-page {
        padding-bottom: 200px;
    }

    /* Empty cart responsive */
    .ardux-empty-cart {
        padding: 40px 15px;
    }

    .ardux-empty-cart p {
        font-size: 16px;
    }

    .ardux-continue-shopping {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Ardux Checkout Loader Styles */
.ardux-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.ardux-loader.hidden {
    display: none;
    opacity: 0;
}

.ardux-loader.visible {
    display: flex;
    opacity: 1;
}

.ardux-loader-svg {
    width: 60px;
    height: 60px;
    color: #ffffff;
}

.ardux-loader-circle {
    animation: ardux-spin 1.5s linear infinite;
    transform-origin: center;
}

@keyframes ardux-spin {
    0% {
        transform: rotate(0deg);
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: -31.4;
    }

    100% {
        transform: rotate(360deg);
        stroke-dashoffset: -62.8;
    }
}

/* Alternative loader styles */
.ardux-loader-inline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.ardux-loader-inline .ardux-loader-svg {
    width: 40px;
    height: 40px;
}

/* Payment Section Styles */
.ardux-order-payment {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 20px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ardux-payment-header {
    margin-bottom: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--rule);
}

.ardux-payment-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.ardux-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ardux-payment-option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 15px;
    cursor: pointer;
    border: 2px solid var(--bench);
    background-color: var(--bench);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ardux-payment-option-main {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ardux-payment-option:hover {
    background-color: var(--rule);
    border-color: var(--rule);
}

.ardux-payment-option.ardux-option-selected {
    background-color: var(--rule);
    border-color: var(--red);
}

.ardux-payment-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.ardux-payment-radio input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.ardux-payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
    color: var(--red);
}

.ardux-payment-icon svg {
    width: 27px;
    height: 27px;
    cursor: pointer;
}

.ardux-payment-details {
    flex: 1;
    cursor: pointer;
}

.ardux-payment-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
}

.ardux-payment-description {
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
}

/* The explanation lives inside the option box and only shows for the
   selected option; it is indented to line up with the option label. */
.ardux-payment-info-content {
    display: none;
}

.ardux-option-selected > .ardux-payment-info-content {
    display: block;
    margin-top: 10px;
    padding: 10px 0 0 90px;
    border-top: 1px solid var(--rule);
}

.ardux-info-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
}

.ardux-info-box p:last-child {
    margin-bottom: 0;
}

.ardux-info-box p strong {
    font-weight: 600;
    color: var(--ink);
}

/* Payment Section Responsive */
@media (max-width: 768px) {
    .ardux-order-payment {
        padding: 15px;
        margin: 15px 0;
    }

    .ardux-payment-header h2 {
        font-size: 15px;
    }

    .ardux-payment-option {
        padding: 12px;
    }

    .ardux-payment-radio {
        width: 35px;
    }

    .ardux-payment-radio input[type="radio"] {
        width: 16px;
        height: 16px;
    }

    .ardux-payment-icon {
        width: 45px;
    }

    .ardux-payment-icon svg {
        width: 28px;
        height: 28px;
    }

    .ardux-payment-label {
        font-size: 14px;
    }

    .ardux-payment-description {
        font-size: 12px;
    }

    .ardux-option-selected > .ardux-payment-info-content {
        padding: 10px 0 0 80px;
    }

    .ardux-info-box p {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Customer Comments Section */
.ardux-order-comments {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ardux-comments-header {
    margin-bottom: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--rule);
}

.ardux-comments-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.ardux-comments-content {
    margin: 0;
}

.ardux-comment-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ardux-comment-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(209, 52, 49, 0.1);
}

.ardux-comment-textarea::placeholder {
    color: var(--muted);
}

/* Agreements Section */
.ardux-agreement-item {
    margin-top: 15px;
    margin-bottom: 15px;
}

.ardux-agreement-text {
    font-size: 14px;
    color: var(--muted);
}

.ardux-agreement-text a {
    color: var(--red);
    text-decoration: underline;
}

.ardux-agreement-text a:hover {
    text-decoration: none;
}

/* Global Error Styles */
.ardux-global-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 9999;
    background-color: var(--err-bg);
    border: 1px solid var(--red);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.ardux-error-icon {
    color: var(--red-deep);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ardux-error-content {
    color: var(--red-deep);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    font-weight: 500;
}

.ardux-error-close {
    background: transparent;
    border: none;
    color: var(--red-deep);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ardux-error-close:hover {
    opacity: 1;
}

/* Having Issues Fallback Message */
.having-issues-wrapper {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(209, 52, 49, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15);
    animation: slideDownFallback 0.5s ease-out;
}


@keyframes slideDownFallback {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.having-issues-wrapper a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    line-height: 1.3;
}


.having-issues-wrapper a:hover {
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.02);
}

.having-issues-wrapper a::before {
    content: "⚠";
    font-size: 14px;
    flex-shrink: 0;
}
/* Mobile responsive */
@media (max-width: 768px) {
    .having-issues-wrapper {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .having-issues-wrapper a {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .having-issues-wrapper a::before {
        font-size: 13px;
    }
}

/* === Ardux_Gifts: gift line item in checkout === */
.ardux-product-item.ardux-gift-item {
    background: #fffbe6;
    border: 1px dashed #e2c200;
}
.ardux-gift-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    background: #cc0000;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 3px;
    vertical-align: middle;
}
.ardux-gift-price {
    color: var(--ok);
    font-weight: bold;
}
.ardux-gift-item .ardux-total-price {
    color: var(--ok);
    font-weight: bold;
}

