/* ====================================================
   PRODUCTS PACKAGES — Frontend Shortcode Styles
   ==================================================== */

:root {
    --gp-popular:   #AC8461;
    --gp-popular-d: #967150;
    --gp-value:     #E3C98A;
    --gp-value-d:   #d0b471;
    --gp-text:      #333333;
    --gp-muted:     #777777;
    --gp-border:    #eaeaea;
    --gp-radius:    8px;
    --gp-free-ship: #2ecc71;
}

/* ====================================================
   DESKTOP — Cards
   ==================================================== */
.gp-wrapper { font-family: sans-serif; }

.gp-desktop {
    display: grid;
    grid-template-columns: repeat(var(--pkg-count, 3), 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 20px auto;
    align-items: stretch;
}

.gp-card {
    background: #fff;
    border: 2px solid var(--gp-border);
    border-radius: var(--gp-radius);
    text-align: center;
    padding: 44px 20px 24px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}
.gp-card:hover { transform: translateY(-5px); }

/* Card featured colors applied via inline style from PHP */
.gp-card--featured { /* border-color and box-shadow set inline */ }

/* Badge */
.gp-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    padding: 6px 22px; border-radius: 30px; font-weight: bold; font-size: 13px;
    letter-spacing: .5px; white-space: nowrap; text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    display: flex; align-items: center; gap: 6px;
}
/* Badge colors applied via inline style from PHP */

.gp-title    { font-size: 22px; font-weight: bold; color: var(--gp-text); margin: 0 0 5px; text-transform: uppercase; }
.gp-subtitle { font-size: 14px; color: var(--gp-muted); margin: 0 0 15px; border-bottom: 1px solid var(--gp-border); padding-bottom: 15px; }

.gp-old-price  { font-size: 14px; color: #999; text-decoration: line-through; margin: 0; min-height: 20px; }
.gp-invisible  { visibility: hidden; }
.gp-main-price { font-size: 28px; font-weight: bold; color: var(--gp-text); margin: 5px 0; }

.pp-save-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 18px; border-radius: 30px; font-size: 13px; font-weight: bold;
    margin: 10px auto 15px;
}
/* Save badge colors applied via inline style from PHP */

.gp-daily          { font-size: 15px; color: #555; font-weight: bold; margin: 0 0 15px; border-bottom: 1px solid var(--gp-border); padding-bottom: 15px; }
.gp-daily--featured { color: var(--gp-popular); }

.gp-shipping {
    font-size: 14px; font-weight: bold; color: #555;
    margin: 0 0 20px; min-height: 20px;
}

/* Buttons */
.pp-btn {
    display: block; width: 100%; padding: 13px 0; font-size: 16px; font-weight: bold;
    text-transform: uppercase; border: none; border-radius: 6px; cursor: pointer;
    transition: .3s; margin-top: auto; letter-spacing: .3px;
}
.pp-btn--basic   { background: #f8f9fa; color: #333; border: 1px solid #ddd; }
.pp-btn--basic:hover { background: #e2e6ea; }
.pp-btn--popular { background: var(--gp-popular); color: #fff; border: 1px solid var(--gp-popular); }
.pp-btn--popular:hover { background: var(--gp-popular-d); border-color: var(--gp-popular-d); }
.pp-btn--value   { background: var(--gp-value); color: #333; border: 1px solid var(--gp-value); }
.pp-btn--value:hover { background: var(--gp-value-d); border-color: var(--gp-value-d); }

/* ====================================================
   MOBILE — Radio rows
   ==================================================== */
.gp-mobile { display: none; }

@media (max-width: 768px) {
    .gp-desktop { display: none; }
    .gp-mobile  {
        display: flex; flex-direction: column; gap: 16px;
        max-width: 100%; padding: 10px 0;
    }

    /* Standalone card (no banner) */
    .gp-mob-option {
        display: block;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: var(--gp-radius);
        padding: 16px 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,.04);
        cursor: pointer;
        transition: border-color .2s, background .2s;
    }
    .gp-mob-option.gp-mob-selected { background: #faf7f5; }

    /* Featured wrap */
    .gp-mob-wrap { border-radius: var(--gp-radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.08); }
    /* Mobile wrap border color applied via inline style from PHP */

    .gp-mob-banner {
        text-align: center; font-weight: bold; padding: 10px;
        font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
    }
    /* Mobile banner colors applied via inline style from PHP */

    .gp-mob-option--inner {
        border: none; border-radius: 0; box-shadow: none; margin: 0;
        background: #fff;
    }
    .gp-mob-option--inner.gp-mob-selected { background: #faf7f5; }

    /* Row 1 */
    .gp-mob-row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-left: 34px; }
    .gp-mob-label { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .3px; }
    .gp-mob-pill  { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; }
    /* Mobile pill colors applied via inline style from PHP */
    .gp-mob-pill--none    { background: #dcdde1; color: #333; }

    /* Row 2 */
    .gp-mob-row2 { display: flex; align-items: baseline; margin-bottom: 8px; }
    .gp-mob-row2 input[type=radio] { transform: scale(1.5); margin-right: 12px; accent-color: var(--gp-popular); cursor: pointer; flex-shrink: 0; }
    .gp-mob-price { font-size: 22px; font-weight: bold; color: var(--gp-text); margin-right: 8px; }
    .gp-mob-old   { font-size: 14px; color: #999; text-decoration: line-through; }

    /* Row 3 */
    .gp-mob-row3 { display: flex; justify-content: space-between; align-items: center; padding-left: 34px; flex-wrap: wrap; gap: 4px; }
    .gp-mob-daily { font-size: 12px; font-weight: bold; color: #333; }
    .gp-mob-ship  { font-size: 12px; color: #555; }
    .gp-mob-ship--free { color: var(--gp-free-ship); }

    /* CTA button */
    .gp-mob-checkout-btn {
        background: #333; color: #fff; border: none;
        padding: 18px; font-size: 17px; font-weight: bold;
        border-radius: var(--gp-radius); text-transform: uppercase;
        width: 100%; margin-top: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
        cursor: pointer; letter-spacing: .5px;
        transition: background .2s;
    }
    .gp-mob-checkout-btn:hover { background: #111; }
}
