/* Backorder badge styles for side cart (WC blocks CSS not loaded outside cart/checkout) */
#offcanvas-cart .wc-block-components-product-badge {
    background: color-mix(in srgb, currentColor 10%, transparent);
    display: inline-block;
    font-size: var(--wp--preset--font-size--x-small, calc(var(--wp--preset--font-size--small, 14px) * .875));
    line-height: 1.4;
    padding: 2px 4px;
    white-space: nowrap;
}

/* Hide the empty ":" label WooCommerce renders before our backorder badge */
#offcanvas-cart dl.variation dt.variation- {
    display: none;
}

/* Fix cart item meta layout for over-max-request details */
#offcanvas-cart .woocommerce-mini-cart-item dl.variation {
    display: block;
    float: none;
    margin-left: 0;
}
#offcanvas-cart dl.variation dt,
#offcanvas-cart dl.variation dd {
    display: inline;
}

#offcanvas-cart dl.variation dd p {
    display: inline;
    margin: 0;
}

#offcanvas-cart dl.variation dd::after {
    content: '';
    display: block;
}

/* Hide the slash separators for over-max request on cart page */
.wc-block-components-product-details span[aria-hidden="true"] {
    display: none;
}

/* Put each detail on its own line */
.wc-block-components-product-details__over-max-request,
.wc-block-components-product-details__requested-quantity,
.wc-block-components-product-details__reason {
    display: block;
}

/**
 * Modify the payment not available message on the checkout page when user changes shipping option
 */

/* Hide the text completely during the flash state */
.wc-block-checkout__payment-method .wc-block-components-notice-banner__content {
    font-size: 0 !important;
}

/* Insert your custom message via CSS pseudo-elements */
.wc-block-checkout__payment-method .wc-block-components-notice-banner__content::before {
    content: "Updating checkout options, please wait...";
    font-size: 16px; /* Restore proper text size */
    display: block;
    color: #555;
}

/* Hide the Pickup Locations heading on stationery only checkout */
.wc-block-checkout__pickup-options:has(.wc-block-components-local-pickup-select:empty) {
    display: none !important;
}

/* HELP FILE */
.ss-help-table {
    margin: 12px 0 16px;
}

.ss-help-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.ss-help-table td,
.ss-help-table th {
    padding: 8px 12px;
    font-size: 13px;
    vertical-align: top;
}

.ss-help-table td:first-child {
    white-space: nowrap;
    width: 160px;
}


/**
 * FEEDBACK FORM
 */
.ss-feedback-dialog {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ss-feedback-modal {
    position: relative;
    background: #fff;
    border-radius: 6px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    margin: 16px;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ss-feedback-modal h2 {
    margin-top: 0;
    font-size: 20px;
}

.ss-feedback-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #757575;
    line-height: 1;
    padding: 0;
}

.ss-feedback-close:hover {
    color: #1d2327;
}

.ss-feedback-field {
    margin-bottom: 16px;
}

.ss-feedback-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.ss-feedback-field select,
.ss-feedback-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.ss-feedback-field textarea {
    resize: vertical;
}

.ss-feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ss-feedback-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

.ss-feedback-submit:hover {
    background: #135e96;
}

.ss-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ss-feedback-cancel {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    color: #555;
}

.ss-feedback-cancel:hover {
    background: #f6f7f7;
}

.ss-feedback-success {
    margin-top: 12px;
    padding: 10px 14px;
    background: #edfaef;
    border: 1px solid #2ecc71;
    border-radius: 4px;
    color: #1a7a43;
    font-size: 13px;
}

.ss-feedback-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fdf0f0;
    border: 1px solid #d63638;
    border-radius: 4px;
    color: #d63638;
    font-size: 13px;
}