/* Withdrawal Module Styles */
.withdrawal-guest-search .page-main {
    margin-top: 100px;
}
/* Order History - Withdrawal Button */
.col.withdrawal .action.withdrawal {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    white-space: nowrap;
}

.col.withdrawal .action.withdrawal:hover {
    background-color: #c0392b;
    color: #fff;
    text-decoration: none;
}

.col.withdrawal .withdrawal-status {
    font-size: 13px;
    white-space: nowrap;
}

.col.withdrawal .withdrawal-status.withdrawn {
    color: #e67e22;
    font-weight: 600;
}

.col.withdrawal .withdrawal-status.expired {
    color: #95a5a6;
}

/* Withdrawal View Page */
.withdrawal-view-container .table-order-details th {
    text-align: left;
    padding: 8px 15px 8px 0;
    width: 220px;
    color: #666;
    vertical-align: top;
}

.withdrawal-view-container .table-order-details td {
    padding: 8px 0;
    vertical-align: top;
}

.withdrawal-view-container .table-order-items {
    width: 100%;
    border-collapse: collapse;
}

.withdrawal-view-container .table-order-items th,
.withdrawal-view-container .table-order-items td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.withdrawal-view-container .table-order-items thead th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.withdrawal-info-box {
    border: 1px solid #e0e0e0;
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.withdrawal-partial-notice {
    margin-top: 20px;
}

.withdrawal-deadline {
    margin-bottom: 15px;
}

.box.box-order-items {
    margin-bottom: 20px;
}

.box.box-order-items .box-title {
    display: block;
    margin-bottom: 10px;
}

.withdrawal-item-withdrawn {
    opacity: 0.5;
}

.withdrawal-status-badge {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.withdrawal-qty-input {
    width: 60px;
}

.col-withdrawal-select {
    width: 40px;
}

.withdrawal-view-container .action.primary.withdraw {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.withdrawal-view-container .action.primary.withdraw:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* Success Page */
.withdrawal-success-container {
    max-width: 760px;
    margin: 0 auto;
}

.withdrawal-success-container .block-content {
    padding: 42px 20px 48px;
    text-align: center;
}

.withdrawal-success-container h2 {
    margin: 0 0 24px;
    color: #e7332a;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
}

.withdrawal-success-icon {
    margin-bottom: 22px;
    color: #43ad4d;
    font-size: 64px;
    line-height: 1;
}

.withdrawal-success-order,
.withdrawal-success-text {
    max-width: 680px;
    margin: 0 auto 14px;
    color: #555;
    font-size: 16px;
    line-height: 1.55;
}

.withdrawal-success-container .actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 34px;
}

.withdrawal-success-container .actions-toolbar > .primary,
.withdrawal-success-container .actions-toolbar > .secondary {
    float: none;
    margin: 0 !important;
}

.withdrawal-success-button,
.withdrawal-success-container .actions-toolbar .action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 24px !important;
    border: 1px solid gray !important;
    color: #555 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

.withdrawal-success-button:hover,
.withdrawal-success-button:focus,
.withdrawal-success-container .actions-toolbar .action:hover,
.withdrawal-success-container .actions-toolbar .action:focus {
    border-color: #000 !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Guest Withdrawal Form */
.withdrawal-guest-search-container {
    max-width: 760px;
    margin: 0 auto;
}

.withdrawal-guest-search-container .block-title {
    margin-bottom: 28px;
}

.withdrawal-guest-search-container .block-title strong {
    display: block;
}

.withdrawal-guest-search-container .fieldset {
    border: 0;
    margin: 0 0 36px;
    padding: 0;
}

.withdrawal-guest-search-container .fieldset > .legend,
.withdrawal-view-container .fieldset > .legend {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 14px;
    padding: 0;
    color: #555;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.withdrawal-guest-search-container .fieldset > .legend span,
.withdrawal-view-container .fieldset > .legend span {
    display: block;
}

.withdrawal-guest-search-container .note,
.withdrawal-view-container .note {
    clear: both;
    margin: 6px 0 18px;
    color: #555;
    line-height: 1.5;
}

.withdrawal-guest-search-container .field,
.withdrawal-view-container .withdrawal-customer-confirmation .field,
.withdrawal-view-container .withdrawal-declaration .field {
    display: block;
    clear: both;
    margin: 0 0 22px;
}

.withdrawal-guest-search-container .field > .label,
.withdrawal-view-container .withdrawal-customer-confirmation .field > .label,
.withdrawal-view-container .withdrawal-declaration .field > .label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    text-align: left;
}

.withdrawal-guest-search-container #withdrawal-guest-form .fieldset > .field:not(.choice) > .label,
.withdrawal-view-container #withdrawal-form .fieldset > .field:not(.choice) > .label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    text-align: left;
    color:#555;
}

.withdrawal-guest-search-container .field > .control,
.withdrawal-view-container .withdrawal-customer-confirmation .field > .control,
.withdrawal-view-container .withdrawal-declaration .field > .control {
    float: none;
    width: auto;
    margin: 0;
}

.withdrawal-guest-search-container #withdrawal-guest-form .fieldset > .field:not(.choice) > .control,
.withdrawal-view-container #withdrawal-form .fieldset > .field:not(.choice) > .control {
    float: none;
    width: auto;
    margin: 0;
}

.withdrawal-guest-search-container .field .note,
.withdrawal-view-container .field .note {
    margin-top: 6px;
    font-size: 13px;
}

.withdrawal-guest-search-container input.input-text,
.withdrawal-guest-search-container textarea.input-text,
.withdrawal-view-container .withdrawal-customer-confirmation input.input-text,
.withdrawal-view-container .withdrawal-declaration textarea.input-text {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.withdrawal-order-lookup {
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.withdrawal-order-lookup .note {
    max-width: 620px;
}

.withdrawal-lookup-actions,
.withdrawal-fallback-note,
.withdrawal-lookup-message,
.withdrawal-order-result {
    margin-top: 16px;
}

.withdrawal-lookup-actions {
    margin-bottom: 24px;
}

.withdrawal-submit-note {
    margin-top: 34px;
}

.withdrawal-guest-search-container .actions-toolbar,
.withdrawal-view-container .actions-toolbar {
    display: block;
    clear: both;
    margin-left: 0 !important;
    margin-top: 20px;
    padding-left: 0;
    text-align: left;
}

.withdrawal-guest-search-container .actions-toolbar > .primary,
.withdrawal-guest-search-container .actions-toolbar > .secondary,
.withdrawal-view-container .actions-toolbar > .primary,
.withdrawal-view-container .actions-toolbar > .secondary {
    display: block;
    float: none;
    margin: 0 !important;
    padding-left: 0 !important;
    text-align: left;
}

.withdrawal-guest-search-container .withdrawal-order-lookup .actions-toolbar,
.withdrawal-guest-search-container #withdrawal-guest-form > .actions-toolbar {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.withdrawal-guest-search-container .withdrawal-order-lookup .actions-toolbar > .primary,
.withdrawal-guest-search-container .withdrawal-order-lookup .actions-toolbar > .secondary {
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.withdrawal-guest-search-container .actions-toolbar .action,
.withdrawal-view-container .actions-toolbar .action {
    display: inline-block;
    float: none !important;
    margin-left: 0 !important;
}

.withdrawal-guest-search-container #withdrawal-order-lookup-button {
    display: inline-block;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.withdrawal-lookup-message {
    min-height: 22px;
}

.withdrawal-order-result .box-order-details,
.withdrawal-customer-confirmation {
    margin-bottom: 30px;
}

.withdrawal-order-result {
    padding: 26px 0 4px;
    border-bottom: 1px solid #e0e0e0;
}

.withdrawal-found-order .box-title {
    display: block;
    margin-bottom: 14px;
}

.withdrawal-found-order .table-order-details {
    width: 100%;
    max-width: 640px;
    margin-bottom: 16px;
}

.withdrawal-scope-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px 0 16px;
}

.withdrawal-scope-options label {
    font-weight: 600;
}

.withdrawal-submit-note {
    max-width: 640px;
    margin-left: 0;
    margin-bottom: 22px;
    color: #555;
    line-height: 1.5;
}

.withdrawal-captcha {
    clear: both;
    margin: 24px 0 22px;
}

.withdrawal-captcha .constancy-turnstile-container {
    display: inline-block;
    max-width: 100%;
}

.withdrawal-unavailable-notice {
    margin: 24px 0 0;
    padding: 18px 20px;
    border: 1px solid #efd8a8;
    background: #fff3d6;
    color: #6f4300;
}

.withdrawal-unavailable-title {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 16px;
    font-weight: 700;
}

.withdrawal-unavailable-notice p {
    margin: 0 0 18px;
    line-height: 1.5;
}

.withdrawal-guest-search-container .withdrawal-unavailable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.withdrawal-guest-search-container .withdrawal-unavailable-actions > .primary,
.withdrawal-guest-search-container .withdrawal-unavailable-actions > .secondary {
    display: block;
    float: none;
    margin: 0 !important;
    padding: 0 !important;
}

.withdrawal-guest-search-container .withdrawal-unavailable-actions .action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px !important;
    border: 1px solid #e7332a !important;
    background: #e7332a !important;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

.withdrawal-guest-search-container .withdrawal-unavailable-actions .action:hover,
.withdrawal-guest-search-container .withdrawal-unavailable-actions .action:focus {
    border-color: #c92820 !important;
    background: #c92820 !important;
    color: #fff !important;
}

.withdrawal-guest-search-container .withdrawal-unavailable-actions .withdrawal-reload-page {
    background: #fff !important;
    color: #e7332a !important;
}

.withdrawal-guest-search-container .withdrawal-unavailable-actions .withdrawal-reload-page:hover,
.withdrawal-guest-search-container .withdrawal-unavailable-actions .withdrawal-reload-page:focus {
    background: #fff4f2 !important;
    color: #c92820 !important;
}

@media (max-width: 767px) {
    .withdrawal-guest-search-container,
    .withdrawal-view-container {
        max-width: 100%;
    }

    .withdrawal-guest-search-container .field > .label,
    .withdrawal-view-container .withdrawal-customer-confirmation .field > .label,
    .withdrawal-view-container .withdrawal-declaration .field > .label,
    .withdrawal-guest-search-container #withdrawal-guest-form .fieldset > .field:not(.choice) > .label,
    .withdrawal-view-container #withdrawal-form .fieldset > .field:not(.choice) > .label {
        display: block;
        margin: 0 0 6px;
        text-align: left;
    }

    .withdrawal-guest-search-container .field .note,
    .withdrawal-view-container .field .note {
        margin-left: 0;
    }

    .withdrawal-guest-search-container .withdrawal-order-lookup .actions-toolbar,
    .withdrawal-guest-search-container #withdrawal-guest-form > .actions-toolbar,
    .withdrawal-guest-search-container .actions-toolbar,
    .withdrawal-view-container .actions-toolbar,
    .withdrawal-submit-note {
        margin-left: 0;
    }

    .withdrawal-guest-search-container .actions-toolbar,
    .withdrawal-view-container .actions-toolbar {
        display: block;
    }

    .withdrawal-success-container .actions-toolbar {
        display: block;
    }

    .withdrawal-success-container .actions-toolbar > .primary,
    .withdrawal-success-container .actions-toolbar > .secondary {
        margin-bottom: 12px !important;
    }

    .withdrawal-success-button,
    .withdrawal-success-container .actions-toolbar .action {
        width: 100%;
    }

    .withdrawal-guest-search-container .withdrawal-unavailable-actions {
        display: block;
    }

    .withdrawal-guest-search-container .withdrawal-unavailable-actions > .primary,
    .withdrawal-guest-search-container .withdrawal-unavailable-actions > .secondary {
        margin-bottom: 12px !important;
    }

    .withdrawal-guest-search-container .withdrawal-unavailable-actions .action {
        width: 100%;
    }
}
.withdrawal-guest-search .tax-details,.withdrawal-guest-view .tax-details,.withdrawal_index_success .tax-details,.withdrawal_index_view .tax-details {
    display:none;
}   

.withdrawal-guest-search h1.page-title,.withdrawal-guest-view h1.page-title {
    text-align: center;
}
.withdrawal-guest-search-container [hidden] {
    display: none !important;
}

/* Guest lookup results follow the B2C form and card styling. */
.withdrawal-guest-search-container #withdrawal-order-result {
    margin: 24px 0 32px;
    padding: 24px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    color: #31373a;
    overflow-wrap: anywhere;
}

.withdrawal-guest-search-container #withdrawal-order-result .withdrawal-found-order {
    margin: 0;
}

.withdrawal-guest-search-container #withdrawal-order-result .box-title {
    display: block;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.withdrawal-guest-search-container #withdrawal-order-details {
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
    border: 0;
}

.withdrawal-guest-search-container #withdrawal-order-details tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
}

.withdrawal-guest-search-container #withdrawal-order-details tr {
    display: grid;
    gap: 4px;
}

.withdrawal-guest-search-container #withdrawal-order-details th,
.withdrawal-guest-search-container #withdrawal-order-details td {
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
    line-height: 1.5;
}

.withdrawal-guest-search-container #withdrawal-order-details th {
    color: #6f7376;
    font-size: 13px;
    font-weight: 400;
}

.withdrawal-guest-search-container #withdrawal-order-details td {
    font-size: 16px;
    font-weight: 600;
}

.withdrawal-guest-search-container #withdrawal-order-result .withdrawal-order-deadline {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid #14255e;
    border-radius: 0 4px 4px 0;
    background: #f3f5f9;
    font-size: 14px;
    line-height: 1.5;
}

.withdrawal-guest-search-container #withdrawal-order-result .box-order-items {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.withdrawal-guest-search-container #withdrawal-order-result .box-order-items > .box-title {
    margin-bottom: 16px;
    font-size: 18px;
}

.withdrawal-guest-search-container #withdrawal-order-items {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.withdrawal-guest-search-container #withdrawal-order-items th,
.withdrawal-guest-search-container #withdrawal-order-items td {
    padding: 12px 8px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.withdrawal-guest-search-container #withdrawal-order-items th {
    background: #f5f5f5;
    color: #6f7376;
    font-size: 12px;
    font-weight: 600;
}

.withdrawal-guest-search-container #withdrawal-order-items tbody tr:last-child td {
    border-bottom: 0;
}

.withdrawal-guest-search-container #withdrawal-order-items .name {
    min-width: 140px;
}

.withdrawal-guest-search-container #withdrawal-order-items td.name {
    font-weight: 600;
}

.withdrawal-guest-search-container #withdrawal-order-items .sku {
    max-width: 140px;
    color: #6f7376;
    overflow-wrap: anywhere;
}

.withdrawal-guest-search-container #withdrawal-order-items .qty,
.withdrawal-guest-search-container #withdrawal-order-items .qty-withdraw {
    text-align: center;
}

.withdrawal-guest-search-container #withdrawal-order-items .price,
.withdrawal-guest-search-container #withdrawal-order-items .subtotal {
    text-align: right;
}

.withdrawal-guest-search-container #withdrawal-order-items td.price,
.withdrawal-guest-search-container #withdrawal-order-items td.subtotal {
    white-space: nowrap;
}

.withdrawal-guest-search-container #withdrawal-order-items .price::after {
    content: none;
}

.withdrawal-guest-search-container #withdrawal-order-items td.subtotal {
    font-weight: 700;
}

.withdrawal-guest-search-container #withdrawal-order-items .withdrawal-qty-input {
    width: 64px;
    min-width: 0;
    padding: 6px;
    border: 1px solid #c1c3c4;
    border-radius: 4px;
    text-align: center;
}

.withdrawal-guest-search-container #withdrawal-order-result .withdrawal-scope-options {
    gap: 12px 24px;
    margin: 0 0 20px;
}

.withdrawal-guest-search-container #withdrawal-order-result .withdrawal-scope-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.withdrawal-guest-search-container #withdrawal-lookup-message:not(:empty) {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-left: 3px solid #6f7376;
    border-radius: 0 4px 4px 0;
    background: #f5f5f5;
    line-height: 1.5;
}

.withdrawal-guest-search-container #withdrawal-lookup-message.message-success {
    border-color: #427346;
    background: #f0f6f0;
}

.withdrawal-guest-search-container #withdrawal-lookup-message.message-error {
    border-color: #c92820;
    background: #fff3f2;
}

@media (max-width: 767px) {
    .withdrawal-guest-search-container #withdrawal-order-result {
        padding: 20px 16px;
    }

    .withdrawal-guest-search-container #withdrawal-order-details tbody {
        gap: 16px;
    }

    .withdrawal-guest-search-container #withdrawal-order-items,
    .withdrawal-guest-search-container #withdrawal-order-items tbody {
        display: block;
    }

    .withdrawal-guest-search-container #withdrawal-order-items thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .withdrawal-guest-search-container #withdrawal-order-items tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
        padding: 16px 0;
        border-top: 1px solid #e5e5e5;
    }

    .withdrawal-guest-search-container #withdrawal-order-items td {
        display: block;
        min-width: 0;
        max-width: none;
        padding: 0;
        border: 0;
        text-align: left;
    }

    .withdrawal-guest-search-container #withdrawal-order-items td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #6f7376;
        font-size: 12px;
        font-weight: 400;
    }

    .withdrawal-guest-search-container #withdrawal-order-items td.name,
    .withdrawal-guest-search-container #withdrawal-order-items td.sku,
    .withdrawal-guest-search-container #withdrawal-order-items td.col-withdrawal-select {
        grid-column: 1 / -1;
    }

    .withdrawal-guest-search-container #withdrawal-order-items td.name {
        font-size: 16px;
    }

    .withdrawal-guest-search-container #withdrawal-order-items td.name::before,
    .withdrawal-guest-search-container #withdrawal-order-items td.col-withdrawal-select::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .withdrawal-guest-search-container #withdrawal-order-items td.qty,
    .withdrawal-guest-search-container #withdrawal-order-items td.qty-withdraw,
    .withdrawal-guest-search-container #withdrawal-order-items td.price,
    .withdrawal-guest-search-container #withdrawal-order-items td.subtotal {
        text-align: left;
    }
}
