/**
* Theme Name: Tai Font
* Description: Nền tảng chia sẻ và mua bán font chữ chuyên nghiệp hàng đầu Việt Nam. Kết nối cộng đồng designer và người dùng font, mang đến trải nghiệm mua sắm font chữ an toàn và tiện lợi.
* Author: MeCode
* Author URI: https://mecode.pro
* Template: blocksy
* Text Domain: blocksy
*/

body #header [data-items]>* {
    margin: var(--margin, 0 5px);
}

/* Font đã lưu - sử dụng icon user-fill vì nó thể hiện việc lưu trữ */
.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--font-da-luu a::before {
    font-family: woo;
    content: "\E908";
}

/* Font đã tải - sử dụng icon downloadable */
.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--downloaded-fonts a::before {
    font-family: woo;
    content: "\E900";
}

/* Font đã mua - sử dụng icon shopping cart */
.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--purchased-fonts a::before {
    font-family: woo;
    content: "\E909";
}


.wc-block-product-categories-list-item-count span,
.wc-block-product-categories-list-item-count:before,
.wc-block-product-categories-list-item-count:after {
    top: 0px;
}


body .ct-woo-card-extra[data-type=type-1] .ct-button {
    width: 68px;
    text-align: left;
    justify-content: start;
}

body .ct-woo-card-extra[data-type=type-1] {
    top: 0px;
    inset-inline-start: 2px;
}

body [data-products] .product>* {
    margin-bottom: 5px;
}

body [data-products] .woocommerce-loop-product__title,
body [data-products] .woocommerce-loop-category__title {
    --theme-font-weight: 500;
    --theme-font-size: 14px;
    line-height: 19px;
    margin-bottom: 3px;
    font-size: 14px;
}

.wp-block-group .product-views {
    position: relative;
    top: -10px;
    color: #585858;
    font-size: 12px;
}

.ftv-buy-btn {
    font-size: 24px;
    color: #222222;
    position: relative;
    top: -4px;
}

.ftv-buy-btn:hover {
    color: var(--theme-palette-color-1);
}

.ftv-author,
.ftv-author a {
    color: #585858;
    font-size: 12px;
    line-height: 14px;
    font-weight: 300;
    text-transform: capitalize;
}

[data-block="hook:3399"] {
    display: inline;
}

[data-block="hook:3399"] * {
    display: inline;
}

[data-block="hook:3399"] a {
    font-size: 14px
}

.custom-product-fields .ftv-author a {
    font-size: inherit;
}

[data-products] .product {
    --theme-border-radius: 5px;
}

[data-products] {
    grid-column-gap: 20px;
    grid-row-gap: 10px;
}

.wc-block-product-categories-list-item-count {
    margin-left: -2px;
}

/* Base alert styles */
.ct-alert {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 90%;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
}

.ct-alert-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Message container */
.ct-alert-message {
    font-size: 15px;
    line-height: 1.5;
    color: #1f2937;
    flex-grow: 1;
    word-break: break-word;
}

/* Title styling */
.ct-alert-title {
    font-size: 20px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

/* Success specific title */
.ct-alert-success .ct-alert-title {
    color: #065f46;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Success message content */
.ct-alert-success-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Balance info styles */
.ct-alert-balance {
    background: #f0fdf4;
    padding: 12px 15px;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    border: 1px solid #dcfce7;
}

/* Download button styles */
.ct-alert-download-btn,
.ftv-download-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #059669;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.ct-outline {
    background: #ffffff;
    color: #059669 !important;
    border: 1px solid #059669;
}

.ct-alert-download-btn:hover,
.ftv-download-success-btn:hover {
    background: #047857;
}

.ct-alert-download-btn svg,
.ftv-download-success-btn i {
    width: 20px;
    height: 20px;
    font-size: 18px;
}

/* Icons container */
.ct-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 5px;
}

/* Icon colors for different alert types */
.ct-alert-success .ct-alert-icon {
    background: #dcfce7;
    color: #059669;
}

.ct-alert-error .ct-alert-icon {
    background: #fee2e2;
    color: #dc2626;
}

.ct-alert-warning .ct-alert-icon {
    background: #fef3c7;
    color: #d97706;
}

.ct-alert-info .ct-alert-icon,
.ct-alert-confirm .ct-alert-icon {
    background: #dbeafe;
    color: #2563eb;
}

/* Confirm alert specific styles */
.ct-alert-confirm {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ct-alert-confirm .ct-alert-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Content layout for confirm */
.ct-alert-info {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.ct-alert-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 5px;
}

.ct-alert-info-row:last-child {
    border-bottom: none;
    padding-top: 12px;
}

.ct-alert-info-label {
    color: #64748b;
    font-size: 14px;
    white-space: pre;
}

.ct-alert-info-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

/* Buttons container */
.ct-alert-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

/* Button styles */
.ct-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.ct-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.ct-btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.ct-btn-confirm {
    background: #22c55e;
    color: white;
}

.ct-btn-confirm:hover {
    background: #16a34a;
}

/* Close button */
.ct-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 1;
}

.ct-alert-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

/* Overlay styling */
.ct-alert-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

/* Style cho download button trong success message */
.ftv-download-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ftv-download-success-btn:hover {
    background-color: #45a049;
}

.ftv-download-success-btn i {
    font-size: 18px;
}

/* CSS cho button loading state */
.ftv-download-font {
    position: relative;
    transition: all 0.3s ease;
}

.ftv-download-font.loading {
    padding-left: 35px !important;
    pointer-events: none;
    opacity: 0.7;
}

.ftv-download-font.loading::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    border: 2px solid #787575;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: ftv-button-loading 0.8s linear infinite;
}

@keyframes ftv-button-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#wc-wallet-transaction-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header styles */
#wc-wallet-transaction-details thead th {
    background-color: #f8f9fa;
    color: #2c3338;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    border-style: none !important;
}

/* Body styles */
#wc-wallet-transaction-details tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    border-style: none;
}

/* Alternating row colors */
#wc-wallet-transaction-details tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

#wc-wallet-transaction-details tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Hover effect */
#wc-wallet-transaction-details tbody tr:hover {
    background-color: #edf2f7;
    transition: background-color 0.2s ease;
}

/* Transaction type styles */
#wc-wallet-transaction-details mark.credit {
    background-color: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

#wc-wallet-transaction-details mark.debit {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ID column */
#wc-wallet-transaction-details td.sorting_1 {
    font-weight: 500;
    color: #6b7280;
}

/* Date column */
#wc-wallet-transaction-details td:last-child {
    color: #6b7280;
    font-size: 0.95em;
}

.toggle-content {
    display: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .toggle-content {
        display: block;
    }

    #wc-wallet-transaction-details {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #wc-wallet-transaction-details td,
    #wc-wallet-transaction-details th {
        white-space: nowrap;
    }
}

.ftv-view-detail-btn {
    cursor: pointer;
}

.ct-account-modal .ct-alert .ct-alert-close {
    display: none;
}

.ct-account-modal .ct-alert {
    box-shadow: none;
}

.ct-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1px);
    z-index: 9998;
    /* Alert container z-index là 9999 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ct-alert-overlay.show {
    opacity: 1;
}

.ct-alert-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.ct-alert-container[data-position="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ct-alert-container[data-position="top"] {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ct-alert-container[data-position="bottom"] {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ct-alert {
    background: white;
    position: relative;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: alertSlideIn 0.3s ease-out forwards;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.ct-alert.ct-alert-hiding {
    animation: alertSlideOut 0.3s ease-in forwards;
}

@keyframes alertSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alertSlideOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.ct-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ct-alert-icon {
    display: flex;
}

.ct-alert-message {
    font-size: 14px;
    line-height: 1.5;
}

.ct-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.ct-alert-close:hover {
    opacity: 1;
}

/* Alert types */
.ct-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.ct-alert-warning {
    background-color: #fefce8;
    border: 1px solid #fef08a;
    color: #854d0e;
}

.ct-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.ct-alert-info {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.woo-wallet-content-heading {
    background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
    padding: 24px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e9f5;
    margin: 20px 0;
}

.woo-wallet-content-h3 {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: none !important;
}

.woo-wallet-price {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
    float: none !important;
    margin: 0 0 !important;
}

.woo-wallet-price .woocommerce-Price-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woo-wallet-price .woocommerce-Price-currencySymbol {
    font-size: 1.8rem;
    font-weight: 600;
}


/* trang font chi tiet */
.ct-wishlist-button-single {
    z-index: 99;
}

.font-preview.product .attachment-full {
    border-radius: 5px;
}

.summary ul .woocommerce-Price-amount {
    color: #ffffff;
}

.font-preview .ct-wishlist-button-archive::after {
    border-radius: 5px;
    font-size: 10px;
    padding: 1px 2px;
    top: 0;
    left: 0;
}

.font-preview .ct-wishlist-button-archive {
    background: none;
    padding: 0 0;
    position: absolute;
    top: 2px;
    left: 2px;
}

.font-preview .price-product-btn {
    font-size: 10px;
    padding: 1px 2px;
    top: 2px;
    right: 2px;
    border-radius: 5px;
}

.font-preview img.wp-post-image {
    width: 157px;
}

.font-preview {
    position: relative;
    border-radius: 5px;
    width: 30%;
}

.font-header {
    width: 70%;
}

.font-preview-wrapper {
    display: flex;
    gap: 23px;
    max-width: 495px;
    border-radius: 5px;
    background: #F7F7F7;
    padding: 20px;
    margin-bottom: 20px;
}

.font-title {
    margin-bottom: 3px;
}

.font-title a {
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    text-decoration: none;
}

.font-meta {
    font-size: 12px;
    font-weight: 300;
    color: #222222;
}

.download-button {
    display: block;
    margin: 0 auto;
    max-width: 284px;
    padding: 10px 67px;
    font-size: 16px;
    font-weight: 400;
    background: #4F2EC9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-align: center;

}

.font-purchase-section {
    margin-top: 29px;
    margin-bottom: 41px;
}

.download-button:hover {
    color: #ffffff;

    background: #4325b1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 80, 164, 0.2);
}

/* Hiệu ứng hover */
.woo-wallet-content-heading:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

/* style cho popup download */
.ct-alert-download {
    background: #fff;
    padding: 20px;
}

.ct-alert-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    text-align: center;
}

.ct-download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.ct-download-btn:hover {
    background: #eee;
}

.ct-download-btn svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.woocommerce-product-gallery .ftv-buy-btn {
    font-size: 16px;
    padding: 10px 0;
    border-radius: 0 !important;
}

.woocommerce-product-gallery #post-2213 {
    border: 1px solid rgb(251, 246, 246);
    padding: 20px;
    background: #fff;
}

.woocommerce-product-gallery .ftv-buy-btn {
    font-size: 16px;
    padding: 10px 0;
    border-radius: 0 !important;
}

.woocommerce-product-gallery #post-2213 {
    border: 1px solid rgb(251, 246, 246);
    padding: 20px;
    background: #fff;
}

.woocommerce-product-gallery [data-block="hook:1745"] {
    bottom: 0px;
    transition: all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

body div.woocommerce-product-gallery {
    padding-bottom: 40px;
    overflow: visible;
}

.single-product .entry-summary .ftv-buy-btn {
    min-height: var(--theme-button-min-height);
    border-radius: var(--theme-button-border-radius, 3px);
    text-align: center;
    display: block;
    transition: all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --has-link-decoration: var(--false);
}



.single-product .entry-summary .ftv-buy-btn:hover {
    transform: var(--theme-button-transform, translate3d(0, -3px, 0));
}

.woocommerce-MyAccount-content {
    padding: 30px 0;
}

/* An wallet khi khong login */
.ct-account-modal .ct-alert-content {
    flex-direction: row;
    padding: 0;
}

.ct-header-content-block .woo-wallet-icon-wallet {
    display: none;

}

.ct-header-content-block .woo-wallet-menu-contents {

    background: var(--theme-palette-color-7);

    border-radius: 5px;
    height: 41px;
}

.ct-header-content-block .woo-wallet-menu-contents .amount {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    padding: 10px 14px;
    position: relative;
    top: -26px;
}

.ct-header-content-block[data-hook-id="1684"] .wp-block-group {
    padding: 0 0 !important;
    gap: 0;
}

.ct-header-content-block .woo-wallet-menu-contents .woocommerce-Price-currencySymbol {
    text-transform: lowercase;
}


.ct-header-content-block .woo-wallet-menu-contents {
    display: none;
}

.logged-in .ct-header-content-block .woo-wallet-menu-contents {
    display: block;
}

/* an defaul topup form */
.woo-wallet-my-wallet-container .woo-wallet-add-amount {
    display: none;
}

/* hieu ung expand cho long text mobile */
@media (max-width: 767px) {
    .post-2213 .entry-content {
        position: relative;
        max-height: 300px;
        /* Chiều cao khi co lại */
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .post-2213 .entry-content.expanded {
        max-height: none;
    }

    .post-2213 .entry-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(transparent, white);
        /* Hiệu ứng mờ dần */
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .post-2213 .entry-content.expanded::after {
        opacity: 0;
    }

    .toggle-content {
        display: block;
        width: 100%;
        padding: 10px;
        text-align: center;
        background: #f0f0f0;
        border: none;
        border-radius: 5px;
        margin-top: 10px;
        cursor: pointer;
    }
}

/* list pack topup */
.woo-wallet-my-wallet-container .woo-wallet-sidebar {
    display: none;
}

.woo-wallet-content-heading a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4a5568;
}

.woo-wallet-content-heading .woo-wallet-price .dashicons:before {
    font-size: 23px;
}

.woo-wallet-price a {
    font-size: 26px;
    font-weight: 400;
    position: relative;
    top: 5px;
    right: -10px;
    text-decoration: none;
}

.woo-wallet-my-wallet-container .woo-wallet-content {
    width: 100% !important;
}

.woo-wallet-content hr {
    background: rgba(128, 128, 128, 0.12);
}

.ftv-trans-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0;
}

.ftv-trans-wrap a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ftv-tu-listpack {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0px;
	flex-wrap: wrap;/* thêm mới */
	justify-content: left; /* Căn giữa nếu thiếu item trong hàng */ /* thêm mới */
}

.ftv-tu-pack {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 16px;
	flex: 0 0 300px; /* thêm mới -  Cố định chiều rộng 300px, không co giãn */
    box-sizing: border-box; /* thêm mới */
}

.ftv-tu-pack:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ftv-tu-pack.featured {
    background: #fff;
    border: 2px solid #6366F1;
    position: relative;
}

.ftv-tu-pack.featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    opacity: 0.1;
    z-index: -1;
}

p.ftv-tu {
    color: #585858;
}

.ftv-tu-pack.active {
    border: 1px solid #4F2EC9;
}

.ftv-tu-pack.active input[type="submit"] {
    background-color: var(--theme-button-background-initial-color);
}

.ftv-tu-pack.active input[type="submit"]:hover {
    background-color: var(--theme-button-background-initial-color);
}

.ftv-tu-pack-title {
    font-size: 24px;
    font-weight: 600;
    color: #1F2937;
}

.ftv-tu-pack-fee {
    font-size: 20px;
    color: #F59E0B;
    margin-top: 0px;
    font-size: 30px;
    font-weight: 700;
}

.ftv-tu-pack-get {
    font-size: 16px;
    color: #555555;
    margin-top: 0px;
    font-weight: 500;
}

.ftv-tu-pack-coin {
    font-size: 36px;
    font-weight: 700;
    color: #F59E0B;
    margin: 0px 0;
}

.ftv-tu-pack input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}

.ftv-tu-pack input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: #10B981;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ftv-tu-pack.featured input[type="submit"] {
    background: #6366F1;
}

.ftv-tu-pack input[type="submit"]:hover {
    background: #059669;
}

.ftv-tu-pack.featured input[type="submit"]:hover {
    background: #4F46E5;
}

.ftv-tu ul {
    padding: 0px 16px;
}

.ftv-tu h3:nth-child(n+2) {
    padding-top: 20px;
    border-top: 1px solid #F5F5F5;
}

.wp-block-latest-posts__post-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

body .product-entry-wrapper {
    --border-radius: 5px;
}

[data-id="khCzmL1j11WaIqEggBTJI"] p {
    margin-bottom: 0;
    position: relative;
    top: -5px;
}

[data-id="khCzmL1j11WaIqEggBTJI"] {
    margin: 0 0 !important;
    width: 50%;
    justify-content: flex-end;
}

.product-entry-wrapper .entry-summary .price {
    width: 48%;
    margin-right: 0;
}

/* checkout */
#billing_email_field.disabled-field {
    background: none !important;
}

#billing_email_field.disabled-field #billing_email {
    background: #f5f5f5 !important;
}

#billing_first_name_field {
    width: 100%;
}

/* dokan sidebar store */
.dokan-single-store .profile-frame .profile-info-box .profile-info-summery-wrapper .profile-info-summery .profile-info-head .profile-img.profile-img-square img{
    border-radius: 5px;
}
.dokan-store-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}
.dokan-store-products-filter-area .search-store-products{
    margin-left: 5px;
}
.dokan-store-products-filter-area .orderby-search{
    margin-top: 5px;
}
.widget-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.store-cat-stack-dokan ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.parent-cat-wrap {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.parent-cat-wrap a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.parent-cat-wrap a:hover {
    background: #f8f8f8;
    color: #000;
    transform: translateX(5px);
}

.parent-cat-wrap a:active {
    background: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dokan-store-sidebar {
        padding: 15px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    .parent-cat-wrap {
        margin-bottom: 8px;
    }
    
    .parent-cat-wrap a {
        padding: 6px 10px;
    }
}

/* purchase font */
.ftv-font-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.ftv-price-wrap {
    width: 100px;
    text-align: center;
}

.ftv-price-button {
    color: white;
    background-color: #FFAE00;
    padding: 5px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    margin: 0 auto;
}

.ftv-font-info-wrap {
    display: flex;
    gap: 20px;
    width: 40%;
    min-width: 400px;
}

.ftv-font-preview {
    width: 120px;
    flex-shrink: 0;
}

.ftv-font-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.ftv-font-info {
    flex-grow: 1;
}

.ftv-font-title {
    font-size: 16px;
    margin: 0 0 5px;
    line-height: 13px;
}

.ftv-font-title a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.ftv-price,
.ftv-downloads,
.ftv-date {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.ftv-download-button {
    width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.ftv-download {
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.ftv-download-limit-reached {
    color: #dc3545;
}

/* Header styles */
.ftv-fonts-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f5f5f5;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    gap: 20px;
}

.ftv-fonts-header>div:first-child {
    width: 40%;
    min-width: 400px;
}

.ftv-fonts-header>div:not(:first-child) {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.ftv-fonts-header>div:last-child {
    width: 120px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ftv-font-info-wrap {
        width: 50%;
        min-width: 300px;
    }

    .ftv-date {
        display: none;
    }
}

@media (max-width: 768px) {

    .ftv-font-item,
    .ftv-fonts-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .ftv-font-info-wrap {
        width: 100%;
        min-width: auto;
    }

    .ftv-price,
    .ftv-downloads,
    .ftv-date,
    .ftv-download-button {
        width: auto;
    }

    .ftv-price-wrap{
        width: auto;
    }
    .ftv-fonts-header {
        display: none;
    }
}

/* dokan */
.vendor-customer-registration {
    display: none !important;
}

table th#cb {
    text-align: center;
}

.dokan-table>thead>tr>th {
    min-width: 80px;
}

/* Reset và style chung cho bảng */
.dokan-table {
    width: 100%;
    background: #fff;
    border-spacing: 0;
    border-radius: 8px;
    border-collapse: separate;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    font-size: 14px;
    border: none;
}

/* Header styles */
.dokan-table thead th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    position: relative;
    border: none;
}

.dokan-table thead th:first-child {
    border-top-left-radius: 8px;
}

.dokan-table thead th:last-child {
    border-top-right-radius: 8px;
}

/* Body styles */
.dokan-table tbody td,
.dokan-table tbody th {
    padding: 14px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    vertical-align: middle;
    border: none;
}

/* Hover effect cho rows */
.dokan-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Style cho cột status */
.dokan-label {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    display: inline-block;
}

.dokan-label-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.dokan-label-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.ftv-relative-prod {
    padding: 15px 15px;
}

.product-entry-wrapper .entry-summary-items {
    padding-bottom: 20px;
}

.ftv-relative-prod #review_form_wrapper {
    margin-bottom: 40px;
}

/* Style cho prices */
.summary .woocommerce-Price-amount {
    font-weight: 700;
    color: var(--theme-palette-color-7);
}

/* Style cho action buttons */
.dokan-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    transition: all 0.2s ease;
}

.dokan-btn:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Checkbox style */
.dokan-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    cursor: pointer;
}

/* Links style */
.dokan-table a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.dokan-table a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dokan-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dokan-table td[data-title]:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        display: inline-block;
        margin-right: 8px;
    }
}

/* Style cho cột order ID */
.dokan-order-id strong {
    font-size: 14px;
    color: #333;
}

/* Style cho ngày */
.dokan-order-date abbr {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.dokan-table td,
.dokan-table th,
.wc-metabox-content td,
.wc-metabox-content th {
    border-color: #ececec;
}

.dokan-order-billing-address,
.dokan-order-shipping-address {
    display: none;
}

.dokan-order-details-wrap {
    margin-top: 10px;
}

.dokan-dashboard h4 {
    font-size: 18px;
}

.dokan-form-inline #add-note-content {
    height: 100px;
}

body .dokan-form-group .content-half-part.sale-price {
    display: none;
}

body .dokan-product-short-description {
    display: none;
}

.dokan-dashboard .product-edit-new-container .dokan-new-product-featured-img {
    height: 224px !important;
}

#post input[type='submit'].dokan-btn {
    margin-top: 10px;
}

.chart-container .legend td {
    border: none;
}

body .dokan-product-category-modal-footer .dokan-product-category-button-container button {
    width: auto;
    padding: 10px 20px;
}

.dokan-product-category-modal .dokan-product-category-modal-content .dokan-product-category-modal-body .dokan-category-search-container .dokan-cat-search-box {
    align-items: center;
}

.dokan-form-group a.dokan-btn.dokan-btn-sm {
    padding: 19px 10px;
}

.dashboard-content-area,
.dokan-product-listing-area,
.dokan-dashboard-content {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

body.dokan-dashboard .dokan-dash-sidebar #dokan-navigation>input:checked+ul.dokan-dashboard-menu {
    background: var(--theme-palette-color-1);
}

body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active,
body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover,
body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:hover {
    background: var(--theme-palette-color-7);
}

body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active ul.navigation-submenu {
    border-bottom: 0.5px solid var(--theme-palette-color-7);
}

#dokan-vendor-register .nsl-container-buttons {
    display: none;
}

body.dokan-dashboard .dokan-dashboard-wrap {
    width: auto;
}

.dokan-dashboard-content h1 {
    font-size: 20px;
}

.dokan-dashboard .dokan-dashboard-content article.dokan-settings-area .dokan-payment-settings-summary div.payment-methods-listing-header>h2 {
    font-size: 20px;
}

body.dokan-dashboard .dokan-dash-sidebar,
body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu,
body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.navigation-submenu,
body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.navigation-submenu li {
    background-color: var(--theme-palette-color-1);
}

/* footer */
body #footer-menu::before,
body #footer-menu-2::before {
    font-weight: 500;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ftv-tu-listpack {
        gap: 16px;
        padding: 16px;
    }

    .ftv-tu-pack {
        padding: 24px 16px;
    }

    .ftv-tu-pack-title {
        font-size: 20px;
    }

    .ftv-tu-pack-fee .amount {
        font-size: 28px;
    }

    .ftv-tu-pack-coin {
        font-size: 32px;
    }
}

@media (max-width: 980px) {
    .ftv-tu-listpack {
        flex-direction: column;
        max-width: 400px;
    }

    .ftv-tu-pack {
        margin-bottom: 16px;
    }
}

@media(min-width: 960px) {
    body .is-layout-flex.wallet-in-dropdown {
        display: none;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .woo-wallet-content-heading {
        padding: 20px;
    }

    .woo-wallet-price {
        font-size: 2rem;
    }

    .woo-wallet-price .woocommerce-Price-currencySymbol {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ct-alert {
        width: calc(100vw - 40px) !important;
    }

    .ct-alert-container {
        width: 100%;
    }

    .ct-alert-confirm .ct-alert-content {
        padding: 0 0;
    }

    body.dokan-dashboard .dokan-dash-sidebar,
    body.dokan-dashboard .dokan-dashboard-content {
        float: none;
        padding: 20px 10px;
    }
}