/* Midnight Deals for WooCommerce Front Style */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.mdwc-midnight-deal-product {
    position: relative;
}

.mdwc-midnight-deals-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #7b4dff, #a45cff);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    box-shadow: 0 10px 22px rgba(123, 77, 255, 0.28);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    z-index: 3;
    font-family: 'Poppins', sans-serif;
}

.mdwc-midnight-deal-product-page {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    background:
        linear-gradient(90deg, rgba(124, 86, 255, 0.15), rgba(124, 86, 255, 0.05)),
        #ffffff;
    border: 1px solid #e4ddff;
    border-left: 4px solid #7c56ff;
    padding: 10px 12px;
    margin-bottom: 16px;
    color: #2a2f43;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(63, 36, 130, 0.08);
    font-family: 'Poppins', sans-serif;
}

.mdwc-midnight-deal-product-page.has-meta {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
    box-shadow: none;
}

.mdwc-midnight-deal-product-page p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
    flex: 1;
    min-width: 220px;
}

.mdwc-midnight-deal-product-page p strong {
    font-size: 17px;
    color: #3f2a83;
    font-weight: 700;
}

.mdwc-midnight-deal-product-page p span {
    font-size: 14px;
    color: #5e6682;
}

.mdwc-midnight-deal-product-page__icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7d4dff, #a45cff);
    color: #ffffff;
    flex-shrink: 0;
}

.mdwc-midnight-deal-product-page__icon svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    stroke-width: 1.8;
    fill: rgba(255, 255, 255, 0.2);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mdwc-midnight-deal-chip {
    border: 1px solid #d9d5ff;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #5b5f7a;
    font-weight: 600;
}

.mdwc-midnight-deal-meta {
    border: 1px solid #e4ddff;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #ffffff;
    margin-bottom: 16px;
    padding: 14px 14px 12px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 22px rgba(63, 36, 130, 0.08);
}

.mdwc-midnight-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.mdwc-midnight-countdown-item {
    width: 58px;
    border: 1px solid #e4ddff;
    border-radius: 10px;
    background: linear-gradient(135deg, #7d4dff, #a45cff);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
}

.mdwc-midnight-countdown-item strong {
    font-size: 24px;
    line-height: 1;
}

.mdwc-midnight-countdown-item span {
    margin-top: 5px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.92;
}

.mdwc-midnight-countdown-sep {
    color: #8a6bff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.mdwc-midnight-progress-wrap {
    margin-top: 2px;
}

.mdwc-midnight-progress-top,
.mdwc-midnight-progress-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #606782;
}

.mdwc-midnight-progress-top {
    margin-bottom: 8px;
}

.mdwc-midnight-progress-top span:last-child {
    font-weight: 600;
}

.mdwc-midnight-progress-bar {
    width: 100%;
    height: 10px;
    background: #f0edf8;
    border-radius: 999px;
    overflow: hidden;
}

.mdwc-midnight-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7d4dff, #b27cff);
}

.mdwc-midnight-progress-bottom {
    margin-top: 8px;
    font-size: 12px;
}

/* Template: Modern */
.mdwc-midnight-deal-product-page.mdwc-template-modern {
    background: linear-gradient(135deg, #7b4dff, #b35fff);
    border-color: transparent;
    border-left: 0;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(123, 77, 255, 0.28);
}

.mdwc-midnight-deal-product-page.mdwc-template-modern p strong,
.mdwc-midnight-deal-product-page.mdwc-template-modern p span {
    color: #ffffff;
}

.mdwc-midnight-deal-product-page.mdwc-template-modern p span {
    opacity: 0.85;
}

.mdwc-midnight-deal-product-page.mdwc-template-modern .mdwc-midnight-deal-product-page__icon {
    background: rgba(255, 255, 255, 0.22);
}

.mdwc-midnight-deal-product-page.mdwc-template-modern .mdwc-midnight-deal-chip {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.mdwc-midnight-deal-meta.mdwc-template-modern {
    background: linear-gradient(180deg, rgba(123, 77, 255, 0.12), #ffffff);
    border-color: #e4ddff;
}

.mdwc-midnight-deal-meta.mdwc-template-modern .mdwc-midnight-countdown-item {
    background: linear-gradient(135deg, #6f3dff, #9b55ff);
}

/* Template: Minimal */
.mdwc-midnight-deal-product-page.mdwc-template-minimal {
    background: #ffffff;
    border: 1px solid #dbe3f2;
    border-left: 1px solid #dbe3f2;
    box-shadow: none;
    border-radius: 12px;
    padding: 12px 14px;
}

.mdwc-midnight-deal-product-page.mdwc-template-minimal.has-meta {
    border-radius: 12px 12px 0 0;
}

.mdwc-midnight-deal-product-page.mdwc-template-minimal p strong {
    font-size: 15px;
    color: #2a3148;
}

.mdwc-midnight-deal-product-page.mdwc-template-minimal p span {
    font-size: 13px;
}

.mdwc-midnight-deal-product-page.mdwc-template-minimal .mdwc-midnight-deal-product-page__icon {
    width: 22px;
    height: 22px;
}

.mdwc-midnight-deal-product-page.mdwc-template-minimal .mdwc-midnight-deal-product-page__icon svg {
    width: 12px;
    height: 12px;
}

.mdwc-midnight-deal-meta.mdwc-template-minimal {
    border: 1px solid #dbe3f2;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    padding-top: 10px;
}

.mdwc-midnight-deal-meta.mdwc-template-minimal .mdwc-midnight-countdown-item {
    width: 48px;
    padding: 6px 4px;
    background: #f4f6fb;
    border-color: #dbe3f2;
    color: #2a3148;
}

.mdwc-midnight-deal-meta.mdwc-template-minimal .mdwc-midnight-countdown-item strong {
    font-size: 18px;
    color: #2a3148;
}

.mdwc-midnight-deal-meta.mdwc-template-minimal .mdwc-midnight-countdown-item span {
    color: #6b728a;
}

.mdwc-midnight-deal-meta.mdwc-template-minimal .mdwc-midnight-countdown-sep {
    color: #9aa3b8;
}

.mdwc-midnight-deal-meta.mdwc-template-minimal .mdwc-midnight-progress-bar span {
    background: #8f45ff;
}
