/* General Styles */
.swal2-html-container {
    color: black !important;
}

.add-button {
    background: #e0e0e0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-left: 20px !important;
    padding: 4px 25px !important;
    cursor: pointer !important;
}

.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    color: black !important;
}

/* Form Field Styles */
.form-row {
    margin-bottom: 20px !important;
    vertical-align: top !important;
}

.form-row label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: bold !important;
}

.woocommerce-input-wrapper {
    position: relative !important;
}

.woocommerce-input-wrapper input[type="text"],
.woocommerce-input-wrapper input[type="tel"],
.woocommerce-input-wrapper select {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #F26C6D !important;
    border-radius: 4px !important;
    font-size: clamp(0.875rem, 2.5vw, 0.92rem)
    !important;
}

.woocommerce-input-wrapper input[type="text"]:focus,
.woocommerce-input-wrapper input[type="tel"]:focus {
    border-color: #ff2491 !important;
    outline: none !important;
}

.select {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #F26C6D !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: clamp(0.8rem, 2.5vw, 0.92rem)
    !important;
    cursor: pointer !important;
}

.select:focus {
    border-color: #ff2491 !important;
    outline: none !important;
}

/* Dropdown arrow */
.woocommerce form .form-row select::after {
    content: '\25BC' !important;
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    font-size: 11px !important;
    color: #333 !important;
}

/* Quantity Styles */
.quantity-container #increase-quantity,
.quantity-container #decrease-quantity {
    font-size: 20px;
    color: white !important;
    background-color: #F26C6D !important;
}

.quantity-container #product-quantity {
    border: 0;
    margin: 0;
    text-align: center;
    background-color: white !important;
}

/* Pricing Styles */
#subtotal, #total {
    padding-bottom: 0 !important;
    font-weight: 700 !important;
}

#subtotal {
    font-size: 15px !important;
}

#total {
    font-size: clamp(0.875rem, 2.5vw, 0.92rem)
    !important;
}

/* Button Styles */
.wooexpress_button {
    width: 100% !important;
    padding: 10px !important;
    font-size: clamp(0.875rem, 2.5vw, 0.92rem)
    !important;
    font-weight: bold !important;
    color: #fff !important;
    background-color: #F26C6D !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background-color 0.3s ease !important;
}

.wooexpress_button:hover {
    background-color: #F26C6D !important;
}

/* Animation */
@keyframes shake {
    0%, 97%, 100% { transform: translate(0, 0) !important; }
    98% { transform: translate(-1px, 0) !important; }
    99% { transform: translate(1px, 0) !important; }
}

@keyframes slowShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Info Box */
.info-box {
    background-color: #3da9a21c !important;
    padding: 15px !important;
    margin-bottom: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    color: #444444 !important;
}

.info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.info-label {
    font-weight: bold !important;
    flex: 1 !important;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem)

}

.info-value {
    flex: 1 !important;
    text-align: end !important;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem)

}

.woocommerce-Price-amount.amount bdi {
    font-weight: 700 !important;
}

/* Order Form */
.order-form {
    position: relative !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.animated-border {
  padding: 2px;
    background: linear-gradient(45deg, #fb0094, #a100ff, #00b0ca, #9eedff, #ff0000, #fb0094, #00b0ca, #00b0ca, #77cdff, #ff0000);
  background-size: 400%;
  animation: steam 20s linear infinite;
  border-radius: 12px;
}


@keyframes steam {
    0% { background-position: 0 0; }
    50% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

.order-form:after {
    filter: blur(2px);
}

/* Variation Styles */
.variation {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: space-between !important;
    background: white !important;
    min-height: 40px !important;
    border: 1px solid #6fa5f5 !important;
    border-radius: 5px !important;
    padding: 10px !important;
    margin-bottom: 5px !important;
    color: #000000e6 !important;
}

.variation-label {
    margin-right: auto !important;
}

.variation-price {
    margin-left: auto !important;
    white-space: nowrap !important;
}

.variations-container {
    background: #eef9ff !important;
    margin-bottom: 5px !important;
    padding: 10px !important;
    border-radius: 5px !important;
}

/* Cart Form */
body form.cart {
    display: none !important;
}

/* Shipping Styles */
.shipping-box table th, table td {
    border: 0 !important;
    padding: 2px !important;
}
.shipping-box table tr {
    border-bottom: 1px #8080805c solid;
}
.shipping-box table {
    border-width: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: start;
}
.shipping-box td {
    text-align: start;
}
/* Scroll Button */
#scroll-to-form {
    position: fixed;
    bottom: 65px;
    padding: 10px 20px;
    width: 95%;
    right: 0;
    left: 0;
    margin: auto;
    max-width: 400px;
    background-color: #F26C6D;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: clamp(0.875rem, 2.5vw, 0.92rem);
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: none;
}
.beforeform {
    text-align: center;
    color: black;
}
#scroll-to-form.show {
    display: block;
    animation: slowShake 1.5s ease infinite;
}

#scroll-to-form:hover {
    background-color: #005b9a;
    animation: none;
}



.action-box {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: nowrap;
}

.quantity-container {
    display: flex;
    flex: 1 1 40%;
    min-width: 120px;
    max-width: 200px;
    gap: 5px;
}

.quantity-container button,
.quantity-container input[type="text"] {
    font-size: 14px;
    padding: 8px;
    flex: 1;
}

.wooexpress_buttons_wrapper {
    flex: 1 1 60%;
    display: flex;
    align-items: stretch;
}

.wooexpress_button {
    width: 100%;
    font-size: 16px;
    padding: 10px;
}
.quantity-container input[type="text"],
.quantity-container button {
    font-size: 14px !important;
    width: 100%;
}

.attribute-option {
    position: relative; /* REQUIRED for absolute children */
    display: inline-block;
    border: 2px solid #ccc;
    padding: 4px 6px;
    margin: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    min-width: 20px;
    text-align: center;
}

/* Hide native radio button */
.attribute-option input[type="radio"] {
    display: none;
}

/* Highlight selected */
.attribute-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background-color: #f0f8ff;
    font-weight: bold;
}

/* Dim disabled text */
.attribute-option input[type="radio"]:disabled ~ .attribute-label-text {
    opacity: 0.5;
}

/* Red ❌ mark for disabled */
.attribute-option input[type="radio"]:disabled ~ .attribute-label-text::after {
    content: "❌";
    color: red;
    font-size: 18px;
    position: absolute;
    top: 4px;
    right: 6px;
}
.attribute-label {
    align-content: center;
    font-weight: 600;
    color: black;
}
.attribute-group {
    display: flex;
    flex-direction: row;
    gap:10px;
}
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 0.5em;
}

.info-icon {
    width: 16px;
    height: 16px;
    fill: #0073aa;
    cursor: pointer;
}

.tooltip-box {
    position: absolute;
    top: 120%;
    left: 0;
    z-index: 10;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
    font-size: 13px;
    display: none;
}

.tooltip-box.active {
    display: block;
}

/* Responsive Styles */
@media (min-width: 767px) {
    #billing_first_name_field,
    #billing_phone_field,
    #billing_state_field,
    #billing_city_field {
        width: 50% !important;
        display: inline-block !important;
        padding-left: 5px !important;
    }

    .select {
        font-size: 14px !important;
    }

    .quantity-container input[type="text"],
    .quantity-container button {
        font-size: 14px !important;
        width: 100%;
    }

    .info-label label {
        max-width: 18ch !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: small !important;
    }

}
/* Switch to column under 250px */
@media (max-width: 320px) {
    .action-box {
        flex-direction: column;
    }

    .quantity-container,
    .wooexpress_buttons_wrapper {
        width: 100%;
        max-width: 100%;
    }
}
