/* =======================================================
   SCORPION DEFENSE - DARKOVE POUKAZY
   Nacita se: WooCommerce stranky (produkt, kosik, pokladna, Muj ucet)
   ======================================================= */


/* =======================================================
   15. DARKOVY POUKAZ - PROMENNE A TEXTY
   ======================================================= */

.wps_wgm_section {
    --sd-bg: var(--global-palette9);
    --sd-card: var(--global-palette8);
    --sd-border: var(--global-palette7);
    --sd-text: var(--global-palette3);
    --sd-muted: var(--global-palette6);
    --sd-accent: var(--global-palette1);

    color: var(--sd-text);
}

.wps_wgm_section label,
.wps_wgm_section strong,
.wps_wgm_section legend,
.wps_wgm_section .wps_wgm_form_label,
.wps_wgm_section .wps-form-group label,
.wps_wgm_section p {
    color: var(--sd-text) !important;
}

.wps_wgm_section small,
.wps_wgm_section .wps_char_message,
.wps_wgm_section .wps_wgm_char_count,
.wps_wgm_section .wps_wgm_charcount,
.wps_wgm_section .remaining_characters {
    color: var(--sd-muted) !important;
}


/* =======================================================
   16. DARKOVY POUKAZ - INPUTY
   ======================================================= */

.wps_wgm_section input[type="text"],
.wps_wgm_section input[type="email"],
.wps_wgm_section input[type="number"],
.wps_wgm_section input[type="date"],
.wps_wgm_section textarea,
.wps_wgm_section select {
    width: 100%;
    background: var(--sd-bg) !important;
    color: var(--sd-text) !important;
    border: 1px solid var(--sd-border) !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    color-scheme: dark;
}

.wps_wgm_section input::placeholder,
.wps_wgm_section textarea::placeholder {
    color: var(--sd-muted) !important;
    opacity: .75;
}

.wps_wgm_section input:hover,
.wps_wgm_section textarea:hover,
.wps_wgm_section select:hover {
    border-color: var(--sd-muted) !important;
}

.wps_wgm_section input:focus,
.wps_wgm_section textarea:focus,
.wps_wgm_section select:focus {
    background: var(--sd-bg) !important;
    color: var(--sd-text) !important;
    border-color: var(--sd-accent) !important;
    box-shadow: 0 0 0 3px rgba(50, 150, 255, .18) !important;
}

.wps_wgm_section select option {
    background: var(--sd-bg) !important;
    color: var(--sd-text) !important;
}


/* =======================================================
   17. DARKOVY POUKAZ - RADIO, PANELY, CENA
   ======================================================= */

.wps_wgm_section input[type="radio"],
.wps_wgm_section input[type="checkbox"] {
    accent-color: var(--sd-accent);
}

.wps_wgm_section fieldset,
.wps_wgm_section .wps_wgm_delivery_method,
.wps_wgm_section .coupon_box,
.wps_wgm_section .giftcard_preview,
.wps_wgm_section .wps_wgm_preview_wrapper {
    background: var(--sd-card) !important;
    color: var(--sd-text) !important;
    border: 1px solid var(--sd-border) !important;
    border-radius: 10px !important;
}

.wps_wgm_section .woocommerce-Price-amount,
.wps_wgm_section .price {
    color: var(--sd-accent) !important;
    font-weight: 700;
}


/* =======================================================
   18. DARKOVY POUKAZ - TLACITKA
   ======================================================= */

.wps_wgm_section button,
.wps_wgm_section input[type="button"],
.wps_wgm_section input[type="submit"] {
    background: var(--sd-accent) !important;
    color: var(--sd-text) !important;
    border: 1px solid var(--sd-accent) !important;
    border-radius: 8px !important;
    padding: 12px 22px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: none !important;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wps_wgm_section button:hover,
.wps_wgm_section input[type="button"]:hover,
.wps_wgm_section input[type="submit"]:hover {
    background: var(--global-palette2) !important;
    border-color: var(--global-palette2) !important;
    color: var(--sd-text) !important;
    box-shadow: 0 8px 22px rgba(50, 150, 255, .22) !important;
}

/* Nahled - outline tlacitko */
a#mwg_wgm_preview_email {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: var(--global-palette1) !important;
    border: 2px solid var(--global-palette1) !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(50, 150, 255, .12) !important;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

a#mwg_wgm_preview_email:hover,
a#mwg_wgm_preview_email:focus {
    background: rgba(50, 150, 255, .12) !important;
    color: var(--global-palette3) !important;
    box-shadow: 0 8px 22px rgba(50, 150, 255, .25) !important;
    outline: none !important;
}


/* =======================================================
   19. DARKOVY POUKAZ - MOBIL
   ======================================================= */

@media (max-width: 640px) {
    .wps_wgm_section button,
    .wps_wgm_section input[type="button"],
    .wps_wgm_section input[type="submit"],
    a#mwg_wgm_preview_email {
        width: 100%;
        justify-content: center;
    }
}


/* =======================================================
   28. DARKOVY POUKAZ - DETAIL OBJEDNAVKY A DEKOVACI STRANKA
   ======================================================= */

/* Nadpisy sekci v detailu objednavky */
.wps-wgm-thankyou-giftcards h2.woocommerce-order-details__title,
.woocommerce-order-details .woocommerce-order-details__title,
.woocommerce-customer-details h2,
.woocommerce-column__title {
    color: var(--global-palette3) !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
}

.wps-wgm-thankyou-giftcards > p {
    color: var(--global-palette6) !important;
}

/* Karta poukazu */
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-box {
    background: var(--global-palette8) !important;
    border: 1px solid var(--global-palette7) !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    box-shadow: 0 8px 22px rgba(50, 150, 255, .12) !important;
}

.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-box h3 {
    color: var(--global-palette3) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
}

/* Tabulka udaju */
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details,
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details tr,
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details td {
    background: transparent !important;
    border: none !important;
}

.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details tr + tr td {
    border-top: 1px solid var(--global-palette7) !important;
}

.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details td {
    padding: 10px 0 !important;
    color: var(--global-palette3) !important;
    vertical-align: middle;
}

/* Levy sloupec - popisky */
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details td:first-child {
    color: var(--global-palette6) !important;
    font-weight: 600 !important;
}

/* Castka */
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details .amount,
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-details .amount * {
    color: var(--global-palette1) !important;
    font-weight: 700 !important;
}

/* Kod poukazu */
.wps-wgm-thankyou-giftcards .wps-giftcard-code {
    background: var(--global-palette9) !important;
    color: var(--global-palette3) !important;
    border: 2px dashed var(--global-palette1) !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 18px !important;
    letter-spacing: .08em;
}

/* Tlacitko Kopirovat */
.wps-wgm-thankyou-giftcards .wps-copy-coupon-btn {
    background: transparent !important;
    color: var(--global-palette1) !important;
    border: 2px solid var(--global-palette1) !important;
    border-radius: 8px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background-color .2s ease, color .2s ease;
}

.wps-wgm-thankyou-giftcards .wps-copy-coupon-btn:hover {
    background: rgba(50, 150, 255, .12) !important;
    color: var(--global-palette3) !important;
}

/* Stav po zkopirovani */
.wps-wgm-thankyou-giftcards .wps-copy-coupon-btn.copied {
    background: rgba(48, 164, 108, .15) !important;
    color: #4cc38a !important;
    border-color: #4cc38a !important;
}

/* Poznamka pod tabulkou */
.wps-wgm-thankyou-giftcards .wps-wgm-giftcard-box > p {
    color: var(--global-palette6) !important;
    font-size: 13px !important;
    margin: 16px 0 0 !important;
}

/* =======================================================
   31. DARKOVY POUKAZ - NAHLED POD OBRAZKEM PRODUKTU
   ======================================================= */

.wps_wgm_wrapper_for_preview {
    color: var(--global-palette6) !important;
    padding-top: 16px !important;
}

/* Nadpis + cena */
.wps_wgm_wrapper_for_preview h2 {
    color: var(--global-palette3) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--global-palette7) !important;
}

.wps_wgm_wrapper_for_preview h2 > span,
.wps_wgm_wrapper_for_preview #wps_wgm_price_preview {
    color: var(--global-palette1) !important;
    font-weight: 700 !important;
}

/* Radky Od / Na / Zprava */
.wps_wgm_wrapper_for_preview p {
    color: var(--global-palette6) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 6px 0 !important;
}

.wps_wgm_wrapper_for_preview .wps_text_style {
    color: var(--global-palette3) !important;
    font-weight: 400 !important;
}