/* Main Gift Card Section Box */
.ggc-gift-card-fields {
    background-color: #f0ece4 !important;
    border: 1px solid #dcd4c5 !important;
    padding: 20px !important;
    margin-top: 15px;
    margin-bottom: 20px;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Input Fields & Dropdowns inside #f0ece4 background */
.ggc-gift-card-fields input[type="text"],
.ggc-gift-card-fields input[type="number"],
.ggc-gift-card-fields input[type="email"],
.ggc-gift-card-fields input[type="tel"],
.ggc-gift-card-fields select,
.ggc-gift-card-fields textarea {
    background-color: #ffffff !important;
    border: 1px solid #d8cfc0 !important;
    border-radius: 6px !important;
    color: #2c2825 !important;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ggc-gift-card-fields input:focus,
.ggc-gift-card-fields select:focus,
.ggc-gift-card-fields textarea:focus {
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15) !important;
    outline: none;
}

.ggc-calculation-box {
    background: #fff8e7;
    border: 1px solid #ffd591;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Accordion Box */
.ggc-accordion-wrap {
    border: 1px solid #dcd4c5 !important;
    border-radius: 8px !important;
    margin-bottom: 18px;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Accordion Header Button */
.ggc-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #faf7f2 !important;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #2c2825;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-align: left;
    transition: background 0.2s ease;
}

.ggc-accordion-toggle:hover {
    background: #eae4d8 !important;
}

.ggc-accordion-arrow {
    font-size: 12px;
    color: #996b1f;
    transition: transform 0.3s ease;
}

.ggc-accordion-toggle.active .ggc-accordion-arrow {
    transform: rotate(180deg);
}

/* Breakdown Table Rows */
.ggc-price-breakdown {
    border: none;
    border-top: 1px solid #e5dfd3;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: #ffffff;
}

.ggc-pb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f2ede4;
    background: #ffffff;
}

.ggc-pb-row:nth-child(even) {
    background: #faf7f2;
}

.ggc-pb-row:last-child,
.ggc-pb-row.ggc-pb-total {
    border-bottom: none;
}

.ggc-pb-label {
    font-weight: 600;
    color: #38332e;
}

.ggc-pb-value {
    font-weight: 700;
    color: #996b1f;
    text-align: right;
}

.ggc-pb-sub {
    font-weight: 500;
    font-size: 0.85em;
    color: #996b1f;
    white-space: nowrap;
}

/* Total Payable Row */
.ggc-pb-total {
    background: #f7f3ec !important;
    border-top: 2px solid #e0d7c7 !important;
    padding: 14px 16px;
}

.ggc-pb-total .ggc-pb-label {
    color: #2c2825;
    font-weight: 600;
    font-size: 15px;
}

.ggc-pb-total .ggc-pb-value {
    font-size: 1.3em;
    color: #b8860b;
}

.ggc-verify-container {
    max-width: 500px;
    margin: 20px auto;
}

.ggc-verify-result.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    padding: 15px;
    margin-top: 15px;
}

.ggc-verify-result.error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 15px;
    margin-top: 15px;
}

/* Review Bonus Button */
.ggc-review-bonus-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #b8860b 0%, #996b1f 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.25);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ggc-review-bonus-btn:hover {
    background: linear-gradient(135deg, #996b1f 0%, #7a5417 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(184, 134, 11, 0.35);
}

.ggc-review-bonus-btn:active {
    transform: translateY(0);
}

/* ======================================================
   ELEGANT GOLD THEME STYLING FOR WOOCOMMERCE PRODUCT TABS
   ====================================================== */

/* Tab Header Navigation Bar */
.woocommerce-tabs ul.tabs,
.wc-tabs-wrapper ul.wc-tabs,
ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 2px solid #eae4d8 !important;
    background: transparent !important;
}

/* Remove theme pseudo-elements & ugly outlines */
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: "" !important;
}

/* Tab Item Pill Style */
.woocommerce-tabs ul.tabs li,
.wc-tabs-wrapper ul.wc-tabs li,
ul.tabs li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e2dad0 !important;
    background: #faf7f2 !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.25s ease !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Tab Links */
.woocommerce-tabs ul.tabs li a,
.wc-tabs-wrapper ul.wc-tabs li a,
ul.tabs li a {
    display: inline-block !important;
    padding: 10px 22px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #4a443d !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    transition: color 0.25s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Tab Hover State */
.woocommerce-tabs ul.tabs li:hover,
.wc-tabs-wrapper ul.wc-tabs li:hover {
    background: #f0eae1 !important;
    border-color: #d4c8b8 !important;
}

.woocommerce-tabs ul.tabs li:hover a,
.wc-tabs-wrapper ul.wc-tabs li:hover a {
    color: #996b1f !important;
}

/* Active Tab Pill Style (Gold Accent Gradient & Highlight) */
.woocommerce-tabs ul.tabs li.active,
.wc-tabs-wrapper ul.wc-tabs li.active,
ul.tabs li.active {
    background: linear-gradient(135deg, #b8860b 0%, #996b1f 100%) !important;
    border-color: #996b1f !important;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.22) !important;
    transform: translateY(-1px) !important;
}

.woocommerce-tabs ul.tabs li.active a,
.wc-tabs-wrapper ul.wc-tabs li.active a {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Active Indicator Line below tab */
.woocommerce-tabs ul.tabs li.active::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: #ffd700 !important;
}

/* Tab Panel Content Box */
.woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce-tabs .entry-content.wc-tab,
.wc-tab {
    background: #ffffff !important;
    border: 1px solid #eae4d8 !important;
    border-radius: 12px !important;
    padding: 28px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    margin-top: 15px !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c2825 !important;
    margin-bottom: 16px !important;
    border-bottom: 1px dashed #e0d7c7 !important;
    padding-bottom: 10px !important;
}

/* ======================================================
   PRODUCT TITLE DISPLAYED ON LEFT SIDE ABOVE PRODUCT IMAGE
   ====================================================== */
.ggc-product-title-left {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c2825 !important;
    line-height: 1.3 !important;
    display: block !important;
    clear: both !important;
}

/* Hide original title in right summary column if theme renders duplicate */
.single-product .summary.entry-summary .product_title,
.single-product .summary.entry-summary .entry-title {
    display: none !important;
}

/* Checkout & Cart Totals Font Size Override */
#sg_total,
th[id="sg_total"],
.cart-subtotal th,
.cart-subtotal td,
.order-total th,
.order-total td,
tr:last-child th,
tr:last-child td {
    font-size: 15px !important;
}

/* Make all Cart & Checkout Product Titles uniform in color */
.shop_table .product-name,
.shop_table .product-name a,
.woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout-review-order-table .product-name a {
    color: #2c2825 !important;
    text-decoration: none !important;
}

/* Make all item breakdown labels and values uniform in color */
.shop_table dl.variation,
.shop_table dl.variation dt,
.shop_table dl.variation dd,
.shop_table dl.variation p,
.shop_table .wc-item-meta,
.shop_table .wc-item-meta li,
.shop_table .wc-item-meta p {
    color: #555555 !important;
}
