/*
Theme Name: CheeryInk Theme
Theme URI: https://cheeryink.com/
Author: CheeryInk Dev
Author URI: https://cheeryink.com
Description: Custom theme for CheeryInk
Version: 1.0
*/


#product-images:not(.slick-initialized),
#product-thumbnails:not(.slick-initialized) {
    opacity: 0;
    visibility: hidden;
    height: 1px;
    overflow: hidden;
}

#product-images.slick-initialized,
#product-thumbnails.slick-initialized {
    opacity: 1;
    visibility: visible;
    height: auto;
}

.slider-nav .slick-current img {
    opacity: 1 !important;
    border: 2px solid black;
    border-radius: 0.5rem;
}

.slick-prev,
.slick-next {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 9999px;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: all 0.2s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background-color: #f3f4f6;
    border-color: #aaa;
}

.slick-prev::before,
.slick-next::before {
    font-size: 16px;
    line-height: 1;
    color: #000;
    opacity: 0.7;
}

.slick-prev {
    left: 0;
}

.slick-next {
    right: 0;
}

.slider-nav {
    position: relative;
}

/* Optional: hide when disabled */
.slick-disabled {
    opacity: 0.25;
    pointer-events: none;
}

.fancybox-video-wrapper .fancybox-content {
    width: 80vw;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    height: auto !important;
}

@media (max-width: 767px) {
    .fancybox-slide.fancybox-slide--iframe {
        padding: 0 !important;
    }

    .fancybox-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}


#wpadminbar {
    z-index: 50 !important;
}


.woocommerce-variation-price .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ea580c;
}

.woocommerce-variation-price del {
    font-size: 1rem;
    text-decoration: line-through;
    color: #9ca3af;
    margin-right: 0.5rem;
}

.woocommerce-variation-price ins {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ea580c;
    text-decoration: none;
}

.woocommerce .qty {
    width: 5rem;
    padding: 0.2rem 0.2rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 1.125rem;
    background-color: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.woocommerce .qty:focus {
    outline: none;
    border-color: orange;
    box-shadow: 0 0 0 1px orange;
}

dl.variation {
    margin: 0.4rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
}

dl.variation dt {
    display: inline;
    font-weight: 600;
    color: #111827;
    margin-right: 0.25rem;
}

dl.variation dd {
    display: inline;
    margin: 0;
    padding-inline-start: 6px;
}

dl.variation dd p {
    display: inline;
    margin: 0;
}

dl.variation dt::before {
    content: "";
    display: block;
}

.review-order-item-meta dl.variation {
    font-size: 0.775rem;
}

.blockUI.blockOverlay {
    z-index: 10 !important;
}

.select2-container--default .select2-selection--single {
    height: 38px !important;
    padding: 6px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    color: #111827 !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    background: #f3f4f6;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 2px !important;
    right: 8px !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 1.5 !important;
}

#shipping_method bdi {
    color: #000;
    font-weight: 700;
}


/**======== Alert ======*/
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    padding: 5px 5px;
    display: block;

    margin: 0 0 30px;
    position: relative;
    background-color: #f6fafc;
    border-top: 3px solid #ff6f00 !important;
    list-style: none outside;
    width: auto;
    word-break: break-word;
}

/* Từ tablet (≥768px) trở lên */
@media (min-width: 768px) {
    .woocommerce-error, .woocommerce-info, .woocommerce-message {
        padding: 15px 20px 15px 20px;
        display: flex;
        align-items: center;
    }
}

.woocommerce-form-coupon-toggle .woocommerce-info {
    margin: 0 !important;
    padding: 10px 0;
}

.woocommerce-form-coupon .coupon-error-notice {
    color: #dc2626;
    font-weight: 500;
    font-size: 0.875rem;
}

.woocommerce-message:before {
    content: "✔";
    color: #ff6f00;
    margin-right: 0.5rem;
}

.woocommerce .button, .woocommerce a.button, .woocommerce input.button, .woocommerce-page .button, .woocommerce-page a.button, .woocommerce-page input.button, .woocommerce-js .button, .woocommerce-js a.button, .woocommerce-js input.button {
    border-radius: 12px;
    background: #ff6f00;
    color: #fff;
    display: block;
    font-weight: 700;
    outline: none;
    border: none;
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    text-transform: capitalize;
    transition: all 0.3s;
    text-align: center;
    margin-top: 10px;
}

.woocommerce-error .button, .woocommerce-info .button, .woocommerce-message .button {
    min-width: 125px;
    margin-left: auto;
    order: 2;
}

.woocommerce-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    list-style: none;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.woocommerce-error li {
    flex: 0 0 100%;
    list-style: none;
    margin: 2px 0;
    padding: 0;
}

.woocommerce-error a {
    text-decoration: underline;
    font-weight: 500;
    color: #b91c1c;
}

.woocommerce-error a:hover {
    color: #7f1d1d;
}

.woocommerce-info:before {
    content: "ℹ";
    color: #e66400;
}

.woocommerce-error a:not(.button), .woocommerce-info a:not(.button), .woocommerce-message a:not(.button) {
    color: #ff6f00;
    margin-left: 2px;
    text-decoration: underline;
}

/**== end Alert ==*/


/* Thêm vào style.css hoặc trong tailwind via @layer */
@layer utilities {
    .custom-scrollbar {
        scrollbar-width: thin;
        scrollbar-color: #d1d5db transparent;
        /* gray-300 + transparent */
    }

    .custom-scrollbar::-webkit-scrollbar {
        width: 6px;
    }

    .custom-scrollbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .custom-scrollbar::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 9999px;
    }

    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background-color: #9ca3af;
    }
}

.order-review-product-items div:last-child {
    border-bottom: none;
}

.wc_payment_methods {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 20px;
}

.wc_payment_methods li:last-child {
    margin-bottom: 0;
}

.wc_payment_methods li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.wc_payment_methods li input {
    margin-right: 8px;
    position: relative;
    bottom: -1px;
}

.wc_payment_methods li>label {
    display: inline-flex;
    align-items: center;
}

.wc_payment_methods .payment_box {
    flex: 0 0 100%;
    position: relative;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f5f5f5;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.wc_payment_methods .payment_box p:last-child {
    margin-bottom: 0;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.woocommerce-terms-and-conditions-wrapper p:last-child {
    margin-bottom: 0;
}

.woocommerce .form-row label {
    display: block;
    font-weight: 500;
    color: #000;
    line-height: 2;
    margin-bottom: 5px;
}

.woocommerce-terms-and-conditions-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#ship-to-different-address {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.order-total .woocommerce-Price-amount.amount {
    color: #ff6f00;
}

.woocommerce-thankyou-order-received {
    margin-bottom: 30px;
    padding: 2%;
    width: 100%;
    border: 2px dashed #ff6f00;
    border-radius: 12px;
    background-color: #f5f5f5;
    color: #ff6f00;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
}

.wc-bacs-bank-details, .woocommerce-thankyou-order-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.wc-bacs-bank-details li, .woocommerce-thankyou-order-details li {
    flex: 1 1 0%;
    margin-bottom: 20px;
    padding-right: 20px;
    padding-left: 20px;
    border-right: 1px solid #eee;
    text-align: center;
}

.wc-bacs-bank-details strong, .woocommerce-thankyou-order-details strong {
    display: block;
    color: #000;
    margin-top: 10px;
}

.woocommerce-order-details__title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
}

.order-details-wrap {
    position: relative;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 12px;
}

.order-details-inner {
    background-color: #fff;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 5px 15px;
    overflow-x: auto;
}

.woocommerce-order-details .order_details {
    margin-bottom: 0;
}

.woocommerce table, .woocommerce-page table, .woocommerce-js table {
    margin-bottom: 35px;
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    border: 0;
    font-size: 16px;
    line-height: 1.4;
}

.woocommerce table thead, .woocommerce-page table thead, .woocommerce-js table thead {
    background: transparent;
}

.woocommerce table tr, .woocommerce-page table tr, .woocommerce-js table tr {
    border: 0;
}

.woocommerce table th, .woocommerce-page table th, .woocommerce-js table th {
    padding: 15px 10px;
    border: none;
    border-bottom: 2px solid #eee;
    color: #000000;
    font-size: 16px;
    vertical-align: middle;
    text-align: left;
    text-transform: capitalize;
    font-weight: 600;
    line-height: 1.2;
}

.shop_table tr td:last-child, .shop_table tr th:last-child {
    text-align: right;
}

.woocommerce-order-details tfoot tr:first-child th {
    font-size: 16px;
}

.woocommerce table tbody th, .woocommerce table tfoot th, .woocommerce-page table tbody th, .woocommerce-page table tfoot th, .woocommerce-js table tbody th, .woocommerce-js table tfoot th {
    border-bottom: 1px solid #eee;
    text-transform: none;
    font-size: 16px;
}

.woocommerce-order-details tfoot .amount {
    color: #ff6f00;
    font-weight: 600;
    font-size: 16px;
}

.woocommerce-columns--2 {
    display: flex;
}

.col2-set {
    display: flex;
}

.woocommerce-columns .col-1 {
    flex: 0 0 50%;
    padding-right: 15px;
}

.col2-set .col-1 {
    flex: 0 0 50%;
    padding-right: 15px;
}

.woocommerce-column address {
    font-style: italic;
}

address {
    font-style: italic;
}

.woocommerce-column__title {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 24px;
}

.woocommerce-columns .col-2 {
    flex: 0 0 50%;
    padding-left: 15px;
}

.col2-set .col-2 {
    flex: 0 0 50%;
    padding-left: 15px;
}

.woocommerce table td, .woocommerce-page table td, .woocommerce-js table td {
    padding: 15px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-weight: inherit;
}

.woocommerce-order-details .product-name a {
    color: #000000;
    font-weight: 600;
}

.wc-item-meta {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.wc-item-meta li {
    font-size: 12px;
}

.wc-item-meta-label {
    color: #000000;
    font-weight: 600;
    float: left;
    clear: left;
    margin-right: 5px;
    line-height: 1.4;
}

.wc-item-meta li p {
    line-height: 1.4;
}

.shop_table tr td:last-child, .shop_table tr th:last-child {
    text-align: right;
}

.woocommerce-order-details .amount bdi {
    color: #7e7e7e;
    font-weight: 400;
}

.woocommerce-table--order-details tfoot {
    display: table-footer-group;
    vertical-align: middle;
    unicode-bidi: isolate;
    border-color: inherit;
}

@media screen and (max-width: 767px) {
    .woocommerce-thankyou-order-received {
        font-size: 14px;
    }
}

@media screen and (max-width: 991px) {
    .woocommerce-thankyou-order-received {
        font-size: 16px;
    }
}

@media screen and (max-width: 1024px) {
    .woocommerce-thankyou-order-received {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .col2-set .col-1 {
        padding-right: 0;
    }
}

@media screen and (max-width: 991px) {
    .woocommerce-customer-details {
        margin: 45px;
    }
}

@media screen and (max-width: 1024px) {
    .woocommerce-customer-details {
        margin: 55px;
    }
}

@media screen and (max-width: 1440px) {
    .woocommerce-customer-details {
        margin: 65px;
    }
}

@media screen and (max-width: 767px) {
    .woocommerce-customer-details {
        margin: 36px;
    }
}

@media screen and (max-width: 767px) {
    .col2-set {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .col2-set .col-2 {
        padding-left: 0;
    }
}

.woocommerce-form .form-row {
    margin-bottom: 10px;
}

.woocommerce .form-row label {
    display: block;
    font-weight: 500;
    color: #000;
    line-height: 2;
    margin-bottom: 5px;
}

.woocommerce form .form-row .required {
    visibility: visible;
}

.woocommerce .form-row .required {
    color: red;
    font-weight: 700;
    text-decoration: none;
}

.variable-item.selected .check-icon-selected {
    display: block !important;
}
