/*
Theme Name: Duplicate TOF
Theme URI: https://duplicate.com/
Author: duplicate
Author URI: https://duplicate.com/
Description: Duplicate Checkout Theme - Professional Trading Platform
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topone
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

.d-none {
  display: none;
}

form#order_review {
  max-width: 1200px;
  margin: auto;
  margin-top: 90px;
  margin-bottom: 100px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

form#order_review > table.shop_table {
  flex: 1;
}

form#order_review > #payment {
  flex: 1;
}

@media (max-width: 991px) {
  form#order_review {
    flex-direction: column;
  }
}

li.wc_payment_method.payment_method_paytiko_gateway {
  margin-top: 12px !important;
}

button#place_order {
  background-color: #1da8f6;
  padding: 19px 35px !important;
  border-radius: 12px !important;
}

.woocommerce.wp-block-group
  > .woocommerce-notices-wrapper
  + .woocommerce-error {
  margin: 60px auto -40px auto;
}

/* Checkout full page layout */
.checkout-full-page {
    display: flex;
    flex-direction: row;
    gap: 64px;
}
@media (max-width: 1199px) { .checkout-full-page { gap: 32px; } }
@media (max-width: 991px) { .checkout-full-page { flex-direction: column; gap: 16px; } }

.checkout-left-column { display: flex; flex-direction: column; gap: 40px; width: 50%; }
@media (max-width: 991px) { .checkout-left-column { width: 100%; } }

.checkout-right-column { display: flex; flex-direction: column; gap: 16px; width: 50%; }
@media (max-width: 991px) { .checkout-right-column { width: 100%; min-width: unset; } }
@media (min-width: 992px) { .checkout-right-column { min-width: 448px; } }

.order-summary-card {
    display: flex; flex-direction: column; gap: 16px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 24px;
}
.order-summary-card h4.card-title { font-size: 20px; font-weight: 600; color: #fff; margin: 0; }
.selection-pills { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; }
.selection-pill {
    display: flex; height: fit-content; align-items: center; gap: 8px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.08); padding: 4px 12px; font-size: 12px;
}
.selection-pill .pill-label { color: rgba(255, 255, 255, 0.5); }
.selection-pill .pill-value { color: #fff; }
.selection-pill.is-accent { border-color: rgba(246, 255, 120, 0.2); }
.selection-pill.is-accent .pill-value { color: #f6ff78; }
.selected-variations { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.tof-separator { border: none; border-top: 1px solid rgba(255, 255, 255, 0.05); margin: 8px 0; }
.challege-price { font-size: 32px; font-weight: 600; color: #f6ff78; margin: 0; line-height: 1; }
.challege-price .duration { color: rgba(255, 255, 255, 0.5); font-size: 14px; font-weight: 400; }
.start-trading-btn { font-weight: 700; height: 48px; line-height: 48px; padding: 0 24px; border-radius: 27px; color: #000; background: linear-gradient(90deg, #7BFC7F, #F6FF78); }
.white-glow { box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.4); }
.tof-float-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    padding: 6px 12px;
    white-space: nowrap;
    z-index: 10;
}
.tof-float-badge.bg-success {
    background: #7bfc7f !important;
    color: #000 !important;
}

.tof-grid-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}
@media (max-width: 575px) {
    .tof-grid-buttons {
        grid-template-columns: 1fr;
    }
}
.tof-grid-buttons button {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    padding: 12px;
}
.tof-grid-buttons button:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.tof-grid-buttons button.active {
    background: white;
    color: #000 !important;
}

.account-item h6 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #fff;
}
.account-item {
    margin-bottom: 32px !important;
}

.instruction-item { display: flex; align-items: center; gap: 12px; }
.instruction-item .item-number {
    display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: #F6FF78; border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px; font-weight: 600; color: #000; flex-shrink: 0;
}
.instruction-item .item-caption { font-size: 18px; font-weight: 600; color: #fff; margin: 0; }

.badge1 { display: inline-block; font-size: 12px; font-weight: 500; line-height: 1; border-radius: 999px; padding: 6px 12px; color: #fff; }
.badge1.bg-success { background: rgba(123, 252, 127, 0.1); color: #7BFC7F; }
.badge1.bg-warning { background: rgba(246, 255, 120, 0.1); color: #F6FF78; }

main {
    z-index: 5;
}

.site-main {
    z-index: 5 !important;
}

/* Ocultar campo de marketing de ActiveCampaign */
#activecampaign_for_woocommerce_accepts_marketing_field {
    display: none !important;
}

/* Newsletter footer styles mejorados */
.newsletter-input-wrap {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-input-wrap:hover {
    border-color: rgba(123, 252, 127, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-email {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    padding: 16px 20px;
    font-size: 15px;
}

.newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-email:focus {
    outline: none;
    box-shadow: none;
    border: none !important;
}

.newsletter-submit {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7BFC7F 0%, #7DFF7D 100%);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(123, 252, 127, 0.3);
}

.newsletter-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    font-size: 14px;
    color: var(--body-color);
    margin: 8px 0 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: none;
}

.newsletter-message[style*="color: #7BFC7F"] {
    background: rgba(123, 252, 127, 0.1);
    border: 1px solid rgba(123, 252, 127, 0.3);
}

.newsletter-message[style*="color: #ff6b6b"] {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Responsive newsletter en mobile */
@media (max-width: 575px) {
    /* Mantener layout horizontal pill — evita el look raro de columna con doble-contenedor */
    .newsletter-input-wrap {
        flex-direction: row;
        border-radius: 50px;
        padding: 0;
    }

    .newsletter-email {
        padding: 12px 14px;
        font-size: 14px;
    }

    .newsletter-submit {
        width: 40px;
        height: 40px;
        margin-right: 3px;
        flex-shrink: 0;
    }
}