/* ===== GADZIT COD - Bouton Acheter ===== */
.gadzit-buy-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: inherit;
}
.gadzit-buy-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,0,0.45);
}
.gadzit-btn-small  { padding: 9px 18px;  font-size: 13px; }
.gadzit-btn-medium { padding: 13px 22px; font-size: 15px; }
.gadzit-btn-large  { padding: 17px 28px; font-size: 17px; }
.gadzit-btn-xlarge { padding: 21px 36px; font-size: 19px; }

/* ===== Overlay ===== */
#gadzit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9998;
    backdrop-filter: blur(4px);
}

/* ===== Popup ===== */
#gadzit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111;
    color: #fff;
    padding: 36px 32px 28px;
    border-radius: 14px;
    z-index: 9999;
    width: 92%;
    max-width: 460px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    border: 1.5px solid #FF6B00;
}

#gadzit-popup h3 {
    color: #FF6B00;
    font-size: 22px;
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: 0.5px;
}

#gadzit-product-info {
    color: #bbb;
    text-align: center;
    font-size: 14px;
    margin: 0 0 22px;
}

.gadzit-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #777;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s;
}
.gadzit-close:hover { color: #FF6B00; }

/* ===== Form Fields ===== */
.gadzit-field { margin-bottom: 16px; }

.gadzit-field label {
    display: block;
    color: #aaa;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.gadzit-field input,
.gadzit-field textarea {
    width: 100%;
    padding: 13px 15px;
    background: #1e1e1e;
    border: 1.5px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.25s;
    font-family: inherit;
}
.gadzit-field input:focus,
.gadzit-field textarea:focus {
    border-color: #FF6B00;
    outline: none;
    background: #222;
}
.gadzit-field textarea { resize: vertical; }

/* ===== Submit Button ===== */
#gadzit-submit {
    width: 100%;
    padding: 16px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    transition: all 0.3s;
    font-family: inherit;
}
#gadzit-submit:hover   { opacity: 0.9; transform: translateY(-1px); }
#gadzit-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ===== Messages ===== */
#gadzit-success {
    text-align: center;
    color: #4CAF50;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    background: rgba(76,175,80,0.12);
    border-radius: 8px;
    margin-top: 14px;
}
#gadzit-error {
    text-align: center;
    color: #f44336;
    font-size: 14px;
    padding: 10px;
    background: rgba(244,67,54,0.1);
    border-radius: 8px;
    margin-top: 10px;
}

/* ===== COD Badge ===== */
.gadzit-cod-badge {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 16px 0 0;
    border-top: 1px solid #222;
    padding-top: 12px;
}

/* ===== Bundle Box ===== */
.gadzit-bundle-box {
    background: linear-gradient(135deg, #1a1a00, #2a1500);
    border: 1.5px dashed #FF6B00;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}
.gadzit-bundle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #FFD700;
    font-weight: 700;
    font-size: 14px;
}
.gadzit-bundle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF6B00;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== Upsell Popup ===== */
#gadzit-upsell-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111;
    color: #fff;
    padding: 36px 32px 28px;
    border-radius: 14px;
    z-index: 9999;
    width: 92%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7);
    border: 2px solid #FFD700;
    text-align: center;
}
.gadzit-upsell-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #333;
    margin: 10px auto 14px;
    display: block;
}
.gadzit-upsell-badge {
    display: inline-block;
    background: #FFD700;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
#gadzit-upsell-popup h3 {
    color: #FFD700;
    font-size: 22px;
    margin: 0 0 10px;
}
.gadzit-upsell-product {
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px;
}
.gadzit-upsell-desc {
    color: #aaa;
    font-size: 14px;
    margin: 0 0 16px;
}
.gadzit-upsell-price {
    margin: 14px 0 20px;
}
.gadzit-old-price {
    text-decoration: line-through;
    color: #777;
    font-size: 18px;
    margin-right: 10px;
}
.gadzit-new-price {
    color: #FF6B00;
    font-size: 28px;
    font-weight: 800;
}
.gadzit-upsell-yes {
    display: block;
    width: 100%;
    padding: 16px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    transition: all 0.3s;
    font-family: inherit;
}
.gadzit-upsell-yes:hover { opacity: 0.9; transform: translateY(-1px); }
.gadzit-upsell-no {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 6px;
}
.gadzit-upsell-no:hover { color: #999; }

/* ===== Essential Product Section (inside upsell popup) ===== */
.gadzit-essential-section {
    border-top: 1px solid #2a2a2a;
    margin-top: 18px;
    padding-top: 16px;
    text-align: center;
}
.gadzit-essential-label {
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.gadzit-essential-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid #333;
    margin: 0 auto 8px;
    display: block;
}
.gadzit-essential-name {
    font-size: 14px;
    color: #ddd;
    margin: 0 0 4px;
}
.gadzit-essential-price {
    color: #FF6B00;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}
.gadzit-essential-btn {
    background: transparent;
    color: #fff;
    border: 1.5px solid #444;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.gadzit-essential-btn:hover {
    border-color: #FF6B00;
    color: #FF6B00;
}
.gadzit-essential-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
    #gadzit-popup, #gadzit-upsell-popup { padding: 26px 18px 22px; }
}
