/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
body {
    font-family: sans-serif;
}

.text-success {
    color: green;
}

.text-danger {
    color: red;
}

#page-header .page-header__content {
    background-color: #386c61;
    border-radius: 5px;
    color: #fff;
    padding: 1rem;
    margin-top: 0.75rem;
}

#page-header .page-header__content .page-header__title,
#page-header .page-header__content .page-header__description {
    color: #fff;
}

.dokan-razorpay-modals.iziModal,
.dokan-razorpay-modals.iziModal h2.dokan-popup-title.dokan-razorpay-account-title {
    color: #040404;
}

.dokan-razorpay-modals.iziModal .dokan-form-group #dokan_razorpay_vendor_register_button {
    background-color: #0D94FB;
}

.dokan-label.pending {
    background-color: #F9B326 !important;
}

.select2-container--open .select2-dropdown--below {
    margin-top: 0.5rem !important;
}

input[type="submit"].dokan-btn-theme.dokan-btn-danger,
a.dokan-btn-theme.dokan-btn-danger,
.dokan-btn-theme.dokan-btn-danger {
    color: #fff !important;
    background-color: #d9534f !important;
    border-color: #d43f3a !important;
}

.woocommerce-ellipsis-menu button:hover,
.woocommerce-ellipsis-menu button:focus {
    background-color: transparent;
}

.woocommerce-filters-date__tabs button:hover,
.woocommerce-filters-date__tabs button:focus {
    background-color: transparent;
}

.woocommerce-filters-filter .woocommerce-filters-date__text {
    color: #040404;
    font-weight: 700;
}

.woocommerce-filters-date__tabs .woocommerce-segmented-selection__container {
    background-color: #fff;
}

.woocommerce-filters-date__tabs .woocommerce-segmented-selection__container .woocommerce-segmented-selection__item {
    height: 2.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.woocommerce-filters-date__tabs .woocommerce-segmented-selection__container .woocommerce-segmented-selection__item label span.woocommerce-segmented-selection__label {
    background-color: #fff;
    padding: 0;
    height: unset;
    display: inline-block;
}

.woocommerce-filters-date__tabs .woocommerce-calendar .woocommerce-calendar__inputs .woocommerce-calendar__input svg.calendar-icon {
    display: none;
}

/* Tweak Dokan permalink edit buttons layout */
.product-edit-container #edit-slug-box {
    display: block;
}

.product-edit-container #edit-slug-box #edit-slug-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.product-edit-container #edit-slug-box #edit-slug-buttons button.button {
    margin: 0;
    line-height: 1.4 !important;
    padding: 4px 12px;
}

.product-edit-container #edit-slug-box #edit-slug-buttons button.button.save {
    background-color: var(--dokan-button-background-color, #7047EB);
    border-color: var(--dokan-button-background-color, #7047EB);
    color: #fff;
}

/* Enhanced Dokan product gallery */
.product-edit-container .dokan-product-gallery {
    margin-top: 18px;
}

.product-edit-container .dokan-product-gallery {
    margin-top: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-edit-container #dokan-product-images {
    min-height: 100px;
}

.product-edit-container #dokan-product-images ul.product_images {
    display: inline-flex;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.product-edit-container #dokan-product-images ul.product_images li.image,
.product-edit-container #dokan-product-images ul.product_images li.dokan-sortable-placeholder,
.product-edit-container #dokan-product-images ul.product_images li.add-image {
    float: none;
    width: 96px;
    min-width: 96px;
    height: 96px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(18, 38, 63, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-edit-container #dokan-product-images ul.product_images li.image:hover,
.product-edit-container #dokan-product-images ul.product_images li.dokan-sortable-placeholder:hover,
.product-edit-container #dokan-product-images ul.product_images li.add-image:hover {
    box-shadow: 0 6px 15px rgba(18, 38, 63, 0.12);
    transform: translateY(-2px);
}

.product-edit-container #dokan-product-images ul.product_images li.image img,
.product-edit-container #dokan-product-images ul.product_images li.dokan-sortable-placeholder img,
.product-edit-container #dokan-product-images ul.product_images li.add-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-edit-container #dokan-product-images ul.product_images li.image a.action-delete,
.product-edit-container #dokan-product-images ul.product_images li.dokan-sortable-placeholder a.action-delete,
.product-edit-container #dokan-product-images ul.product_images li.add-image a.action-delete {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 26px;
    border-radius: 0;
}

.product-edit-container #dokan-product-images ul.product_images li.add-image {
    border: 2px dashed var(--dokan-button-background-color, #7047EB);
    color: var(--dokan-button-background-color, #7047EB);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(112, 71, 235, 0.05);
}

.product-edit-container #dokan-product-images ul.product_images li.add-image a {
    font-size: 24px;
    color: inherit;
}

.product-edit-container #dokan-product-images ul.product_images li.add-image:hover {
    background: rgba(112, 71, 235, 0.1);
}

.product-edit-container #dokan-product-images ul.product_images li.add-image:hover a {
    color: var(--dokan-button-background-color, #7047EB);
}

.tapper-tea-rma-requests .rma-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick view modal backdrop */
.quick-view-modal .modal__backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.quick-view-modal .modal__quickview {
    border-radius: 12px;
    overflow: hidden;
}

.tapper-tea-rma-requests .rma-actions .button {
    font-size: small;
    line-height: 1.5;
    padding: 5px 12px;
    min-width: unset;
    border-radius: 4px;
}

.tapper-tea-rma-requests .tapper-tea-rma-delete-form {
    display: inline-flex;
    margin: 0;
}

.tapper-tea-rma-requests .tapper-tea-rma-delete-form .button {
    background-color: #d9534f;
}

.tappertea-rma-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tappertea-rma-status-actions .tt-status-action-button {
    font-size: 13px;
    padding: 7px 12px;
    background: #f4f8ff;
    color: #1b3350;
    border-color: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tappertea-rma-status-actions .tt-status-action-button[data-status="processing"],
.tappertea-rma-status-actions .tt-status-action-button[data-status="reviewing"] {
    background: #1f5ba6;
    color: #fff;
}

.tappertea-rma-status-actions .tt-status-action-button[data-status="rejected"] {
    background: #cf3d3d;
    color: #fff;
}

.tappertea-rma-status-actions .tt-status-action-button[data-status="completed"] {
    background: #389c4b;
    color: #fff;
}

.tappertea-rma-status-actions .tt-status-action-button[data-status="new"] {
    background: #f8c145;
    color: #1b3350;
}

.dokan-status-update-panel {
    border-color: rgba(35, 54, 85, 0.2);
    box-shadow: 0 24px 45px rgba(15, 40, 80, 0.08);
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.dokan-status-update-panel .dokan-panel-heading {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tappertea-rma-status-actions .tt-status-action-button {
    box-shadow: 0 4px 10px rgba(35, 54, 85, 0.08);
    border-radius: 999px;
}

.tappertea-rma-status-actions .tt-status-action-button:hover {
    background: var(--dokan-button-background-color, #386c61);
    color: #fff;
    border-color: var(--dokan-button-background-color, #386c61);
    transform: translateY(-2px);
}

.tappertea-rma-status-actions .tt-status-action-button:disabled,
.tappertea-rma-status-actions .tt-status-action-button.tt-status-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    background: #d8dae8;
    color: #9ca4bb;
}

.tappertea-rma-current-status {
    font-weight: 600;
    margin: 0;
    padding: 0 0 4px;
    color: rgba(14, 32, 63, 0.85);
}

.tappertea-rma-refund-panel {
    margin-top: 10px;
}

.tappertea-rma-refund-panel .dokan-panel-body {
    padding: 15px;
    background: #fff;
}

.tappertea-rma-refund-actions {
    display: flex;
    gap: 8px;
}

.tappertea-rma-refund-actions .dokan-btn {
    background: #fffbf0;
    color: #7c4f14;
    border-color: #f8dab3;
}

.tappertea-rma-refund-actions .dokan-btn.dokan-send-refund-request:hover,
.tappertea-rma-refund-actions .dokan-btn.tappertea-send-full-refund:hover {
    background: #7c4f14;
    color: #fff;
    border-color: #7c4f14;
}

.tappertea-rma-refund-actions .dokan-btn[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.tt-rma-status-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.tt-rma-status-new {
    background: #f8c145;
    color: #1b3350;
}

.tt-rma-status-processing,
.tt-rma-status-reviewing {
    background: #1f5ba6;
    color: #fff;
}

.tt-rma-status-rejected {
    background: #cf3d3d;
    color: #fff;
}

.tt-rma-status-completed {
    background: #389c4b;
    color: #fff;
}

.tt-rma-type-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.tt-rma-type-refund {
    background: #ffe4e4;
    color: #a83232;
}

.tt-rma-type-replace {
    background: #e8f5ff;
    color: #1f5ba6;
}

.tt-rma-type-coupon {
    background: #fff4e0;
    color: #a85b00;
}

.tappertea-rma-refund-message {
    margin-top: 10px;
}

input[type="checkbox"]:focus,
input[type="checkbox"]:focus-visible,
input[type="checkbox"]:checked:focus,
input[type="checkbox"]:checked:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-offset-width: 0 !important;
    --tw-ring-color: transparent !important;
}

.tt-dokan-update-customer-to-vendor input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Customer order action buttons */
.woocommerce-account .my_account_orders .button,
.woocommerce-account .woocommerce-order-details .button,
.woocommerce-account .woocommerce-order-overview .button,
.woocommerce-account .order-again .button {
    border-width: 1px;
    border-style: solid;
    color: #fff !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
}

.woocommerce-account .my_account_orders .button.pay,
.woocommerce-account .woocommerce-order-details .button.pay,
.woocommerce-account .woocommerce-order-overview .button.pay {
    background-color: #2563eb !important;
    border-color: #1d4ed8 !important;
}

.woocommerce-account .my_account_orders .button.pay:hover,
.woocommerce-account .my_account_orders .button.pay:focus,
.woocommerce-account .woocommerce-order-details .button.pay:hover,
.woocommerce-account .woocommerce-order-details .button.pay:focus,
.woocommerce-account .woocommerce-order-overview .button.pay:hover,
.woocommerce-account .woocommerce-order-overview .button.pay:focus {
    background-color: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #fff !important;
}

.woocommerce-account .my_account_orders .button.cancel,
.woocommerce-account .woocommerce-order-details .button.cancel,
.woocommerce-account .woocommerce-order-overview .button.cancel {
    background-color: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}

.woocommerce-account .my_account_orders .button.cancel:hover,
.woocommerce-account .my_account_orders .button.cancel:focus,
.woocommerce-account .woocommerce-order-details .button.cancel:hover,
.woocommerce-account .woocommerce-order-details .button.cancel:focus,
.woocommerce-account .woocommerce-order-overview .button.cancel:hover,
.woocommerce-account .woocommerce-order-overview .button.cancel:focus {
    background-color: #b91c1c !important;
    border-color: #991b1b !important;
    color: #fff !important;
}

.woocommerce-account .my_account_orders .button.view,
.woocommerce-account .woocommerce-order-details .button.view,
.woocommerce-account .woocommerce-order-overview .button.view {
    background-color: #0d9488 !important;
    border-color: #0f766e !important;
}

.woocommerce-account .my_account_orders .button.view:hover,
.woocommerce-account .my_account_orders .button.view:focus,
.woocommerce-account .woocommerce-order-details .button.view:hover,
.woocommerce-account .woocommerce-order-details .button.view:focus,
.woocommerce-account .woocommerce-order-overview .button.view:hover,
.woocommerce-account .woocommerce-order-overview .button.view:focus {
    background-color: #0f766e !important;
    border-color: #0b5f5c !important;
    color: #fff !important;
}

.woocommerce-account .my_account_orders .button:focus-visible,
.woocommerce-account .woocommerce-order-details .button:focus-visible,
.woocommerce-account .woocommerce-order-overview .button:focus-visible,
.woocommerce-account .order-again .button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4) !important;
    outline-offset: 2px;
}


/* Vendor order page */
.dokan-panel .dokan-panel-body .wc-order-data-row table.wc-order-totals {
    float: none;
}

.shippments-tracking-header .shippments-statuses {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.shipping-status-tracking-shippments-inner .shippments-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shippments-tracking-header .shippments-tracking-title {
    font-size: medium;
}

.shippments-tracking-status strong {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.shippments-tracking-header .shippments-statuses .shippments-tracking-status {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    padding: 8px 20px;
    border-radius: 35px;
    text-align: center;
    font-size: 13px;
}

.shippments-tracking-header .shippments-tracking-via {
    text-align: right;
}

.shippments-tracking-note {
    padding: 0 20px 10px;
    font-size: small;
    text-align: center;
}

.dokan-panel .dokan-panel-body .wc-order-data-row .add-items,
.dokan-panel .dokan-panel-body .wc-order-data-row .refund-actions {
    float: none;
    display: flex;
    justify-content: right;
    gap: 5px;
}

/* Customer orders page */
.woocommerce-account .woocommerce-MyAccount-orders .woocommerce-orders-table__cell .woocommerce-button {
    min-width: unset;
    margin: 2px;
    line-height: 2rem;
    height: 2rem;
}

.dokan-warranty-request-wrap .warranty-form-row select {
    height: unset;
}

/* Customer checkout page */
form.checkout .col-2 {
    padding: 0;
    border: none;
}

form.checkout .col-1 {
    padding: 0 31px 25px;
    border: 1px solid #ecf0f4;
    border-top: 0;
}

form.checkout h3 {
    margin-top: revert;
}

form.checkout .select2 {
    width: 100% !important;
}

.product-summary-wrapper .single-product-extra-content {
    display: none !important;
}

.catalog-top-categories__wrapper.swiper-container {
    overflow-x: scroll;
}

.tt-product-video__player {
    width: 100%;
    height: auto;
    display: block;
}

.woocommerce-product-gallery .tt-product-video {
    position: relative;
}

/* Product listing guidelines (vendor add/edit product) */
.tt-product-guidelines {
    margin: 0 0 18px;
}

.tt-product-guidelines__details {
    border: 1px solid #f59e0b;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.12);
    position: relative;
}

.tt-product-guidelines__details>summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7c2d12;
    position: relative;
    padding-right: 26px;
    font-size: 15px;
}

.tt-product-guidelines__details>summary::-webkit-details-marker {
    display: none;
}

.tt-product-guidelines__details>summary::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    flex: 0 0 12px;
}

.tt-product-guidelines__details>summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #9a3412;
    border-bottom: 2px solid #9a3412;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s ease;
}

.tt-product-guidelines__details[open]>summary::after {
    transform: translateY(-40%) rotate(-135deg);
}

.tt-product-guidelines__content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(124, 45, 18, 0.2);
    color: #4c2415;
}

.dokan-dashboard .dokan-dashboard-content .tt-product-guidelines__content ul li {
    margin: 0 0 0 18px;
    list-style: disc;
}

.dokan-dashboard .dokan-dashboard-content .tt-product-guidelines__content ul ul li {
    margin-top: 6px;
    list-style: circle;
}

.tt-product-guidelines__content li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.tt-product-guidelines__examples {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tt-product-guidelines__example {
    background: #fffbf5;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 8px;
}

.tt-product-guidelines__example-label {
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 6px;
    color: #7c2d12;
}

.tt-product-guidelines__example img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 640px) {
    .tt-product-guidelines__examples {
        grid-template-columns: 1fr;
    }
}

.tt-shipment-label-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e4e7;
}

.tt-shipment-label-actions__title {
    text-align: left;
    font-weight: 600;
    margin-bottom: 6px;
}

.tt-shipment-label-actions__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tt-shipment-label-actions__label {
    min-width: 140px;
    font-size: 13px;
    color: #50575e;
}

.tt-shipment-label-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.tt-shipment-label-modal.is-open {
    display: block;
}

.tt-shipment-label-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.tt-shipment-label-modal__content {
    position: relative;
    background: #fff;
    width: min(90vw, 620px);
    max-height: 90vh;
    overflow: auto;
    margin: 5vh auto;
    border-radius: 8px;
    padding: 16px;
}

.tt-shipment-label-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e4e7;
    padding-bottom: 8px;
    margin-bottom: 12px;
    position: relative;
}

.tt-shipment-label-modal__title {
    font-size: 16px;
}

.tt-shipment-label-modal__close {
    padding: 0;
    min-width: unset;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 4px;
    right: 0;
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.tt-shipment-label-modal__close:hover,
.tt-shipment-label-modal__close:focus {
    color: #000;
    background-color: transparent;
    box-shadow: none;
    outline: none;
}

.tt-label {
    border: 1px solid #1d2327;
    border-radius: 6px;
    padding: 16px;
    font-size: 13px;
}

.tt-label__brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.tt-label__brand-title {
    font-size: 18px;
    font-weight: 700;
}

.tt-label__brand-logo {
    /* width: 40px; */
    height: 60px;
    object-fit: contain;
    vertical-align: middle;
}

.tt-label__brand-site {
    font-weight: 400;
}

.tt-label__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.tt-label__title {
    font-weight: 700;
    font-size: 16px;
}

.tt-label__meta {
    font-size: 12px;
    color: #50575e;
}

.tt-label__section {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.tt-label__block {
    flex: 1;
}

.tt-label__block strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #50575e;
}

.tt-label__list {
    margin: 0;
    padding-left: 16px;
}

.tt-label__tracking {
    border-top: 1px solid #e2e4e7;
    padding-top: 10px;
}

.woocommerce-badge.upcoming-launch-badge {
    background-color: #040404;
    letter-spacing: 1px;
    font-weight: bold;
    line-height: 1rem;
}

.woocommerce-badges .onsale.woocommerce-badge {
    font-weight: bolder;
    font-size: medium;
}

ins .woocommerce-Price-amount.amount {
    font-weight: bolder;
}

@media (max-width: 640px) {
    .tt-shipment-label-actions__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tt-shipment-label-actions__label {
        min-width: 0;
    }

    .tt-shipment-label-modal__content {
        width: calc(100% - 24px);
        margin: 12px auto;
        max-height: calc(100vh - 24px);
    }

    .tt-label__section {
        flex-direction: column;
        gap: 12px;
    }

    .tt-label__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .woocommerce-badges .onsale.woocommerce-badge {
        font-weight: bolder;
        font-size: 0.70rem;
        letter-spacing: 1px;
    }

    .woocommerce-badge.upcoming-launch-badge {
        font-size: x-small;
        letter-spacing: normal;
        line-height: normal;
    }
}