/**
 * Frontend Styles for Location Picker
 */

/* Product Card Container */
.gbp-product-card {
    background: #fff;
    border: 2px solid #FFC439;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Product Images */
.gbp-product-images {
    padding: 0;
    background: #e0e0e0;
}

.gbp-main-image {
    width: 100%;
    text-align: center;
    background: #e0e0e0;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gbp-main-image img {
    max-width: 400px;
    max-height: 350px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gbp-main-image img:hover {
    opacity: 0.9;
}

.gbp-thumbnail-gallery {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: #fff;
    overflow-x: auto;
    border-top: 2px solid #000;
}

.gbp-thumbnail {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background: #f5f5f5;
}

.gbp-thumbnail:hover,
.gbp-thumbnail.active {
    border-color: #f0ad4e;
}

.gbp-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Price */
.gbp-product-price {
    padding: 15px 15px 5px;
    background: #fff;
}

.gbp-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gbp-sale-price,
.gbp-price {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.gbp-regular-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.gbp-sale-badge {
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* Price hint (discount teaser) */
.gbp-price-hint {
    font-size: 14px;
    font-weight: 500;
    color: #2D8F4E;
    line-height: 1.3;
}

.gbp-price-hint del {
    color: #999;
    font-weight: 400;
}

.gbp-price.gbp-has-discount {
    font-size: 28px;
}

.gbp-price.gbp-has-discount del {
    font-size: 20px;
    color: #999;
    font-weight: 500;
}

/* Cart price line (next to add-to-cart) */
.gbp-cart-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gbp-cart-price-total {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.gbp-cart-price-total.gbp-has-discount del {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}

.gbp-cart-price-percard {
    font-size: 13px;
    font-weight: 500;
    color: #2D8F4E;
}

.gbp-cart-price-percard del {
    color: #999;
    font-weight: 400;
}

/* Stock Status */
.gbp-stock-status {
    padding: 8px 15px 12px;
}

.gbp-in-stock {
    color: #00a86b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.gbp-stock-icon {
    font-size: 14px;
}

.gbp-out-of-stock {
    color: #e2401c;
    font-weight: 600;
}

/* Complete Form Container */
.gbp-complete-form {
    margin: 0;
}

.gbp-cart-form {
    background: transparent;
    padding: 15px;
}

/* Form Fields Row */
.gbp-form-fields {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    margin-bottom: 15px;
}

.gbp-form-fields .gbp-quantity-field {
    flex: 0 0 35% !important;
    display: block !important;
}

.gbp-form-fields .gbp-attribute-field {
    flex: 1 !important;
    display: block !important;
}

.gbp-attribute-value {
    padding: 10px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
}

.gbp-form-fields .gbp-tip-unitate-field {
    flex: 1 !important;
    display: block !important;
}

/* Field Labels and Inputs */
.gbp-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gbp-field label .required {
    color: #e2401c;
    margin-left: 2px;
}

/* Quantity Field */
.gbp-quantity-field .quantity {
    margin: 0;
}

.gbp-quantity-field .quantity input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.gbp-quantity-field .quantity input[type="number"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: none;
}

/* Tip Unitate Select */
.gbp-tip-unitate-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.gbp-tip-unitate-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: none;
}

.gbp-tip-unitate-select.gbp-error-field {
    border-color: #e2401c;
}

/* Location Field */
.gbp-location-field {
    margin-bottom: 15px;
}

.gbp-location-field label {
    font-weight: 700;
    font-size: 12px;
}

/* Add to Cart Button */
button.gbp-add-to-cart-button,
button.single_add_to_cart_button {
    width: 100%!important;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    background: #FFC439;
    border: 3px solid #000;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.gbp-add-to-cart-button:hover,
button.single_add_to_cart_button:hover {
    background: #ffb524;
    transform: translateY(-1px);
}

/* Disabled state - no location selected */
button.gbp-add-to-cart-button.gbp-btn-disabled,
button.single_add_to_cart_button.gbp-btn-disabled {
    background: #d0d0d0;
    border-color: #aaa;
    color: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

button.gbp-add-to-cart-button.gbp-btn-disabled:hover,
button.single_add_to_cart_button.gbp-btn-disabled:hover {
    background: #d0d0d0;
    transform: none;
}

/* Validation error message */
.gbp-validation-error {
    color: #c0392b;
    font-weight: 600;
    font-size: 14px;
    margin: 8px 0;
    padding: 10px 14px;
    background: #fdecea;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    text-align: center;
}

.gbp-button-icon {
    font-size: 18px;
    display: inline-block;
    line-height: 1;
}

/* Additional Info */
.gbp-additional-info {
    padding: 12px 15px;
    background: transparent;
    border-top: none;
    text-align: center;
}

.gbp-additional-info p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

/* Location Search Wrapper */
.gbp-location-search-wrapper {
    position: relative;
}

/* Location Search Input */
.gbp-location-search-input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
    color: #999 !important;
    margin-bottom: 0 !important;
}

.gbp-location-search-input::placeholder {
    color: #999 !important;
}

.gbp-location-search-input:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: none !important;
}

.gbp-location-search-input.gbp-error-field {
    border-color: #e2401c !important;
}

/* Search Results Dropdown */
.gbp-search-results {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    margin-top: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
}

.gbp-loading,
.gbp-error,
.gbp-no-results {
    padding: 8px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.gbp-error {
    color: #e2401c;
}

.gbp-loading {
    color: #007cba;
}

/* Search Result Item */
.gbp-search-result {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gbp-search-result:last-child {
    border-bottom: none;
}

.gbp-search-result:hover {
    background-color: #f5f5f5;
}

.gbp-result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
    font-size: 13px;
    line-height: 1.2;
}

.gbp-result-address {
    font-size: 11px;
    color: #666;
    margin-bottom: 1px;
    line-height: 1.2;
}

.gbp-rating {
    font-size: 11px;
    color: #f90;
    font-weight: 500;
}

/* Selected Location Card */
.gbp-selected-location {
    margin-top: 15px;
}

.gbp-location-card {
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.gbp-location-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.gbp-location-icon {
    font-size: 24px;
    margin-right: 10px;
}

.gbp-location-name {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.gbp-location-details {
    margin-bottom: 15px;
}

.gbp-location-details p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.gbp-location-address {
    color: #555;
}

.gbp-location-rating {
    color: #f90;
    font-weight: 500;
}

.gbp-location-links {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

.gbp-location-links a {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.gbp-location-links a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Change Location Button */
.gbp-change-location {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.gbp-change-location:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Validation Error */
.gbp-validation-error {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gbp-product-card {
        border-radius: 12px;
        border-width: 2px;
    }

    .gbp-main-image {
        min-height: 250px;
    }

    .gbp-sale-price,
    .gbp-price {
        font-size: 28px;
    }

    .gbp-regular-price {
        font-size: 18px;
    }

    /* Stack quantity and tip unitate on mobile */
    .gbp-form-fields {
        flex-direction: column;
        gap: 15px;
    }

    .gbp-form-fields .gbp-quantity-field,
    .gbp-form-fields .gbp-tip-unitate-field {
        flex: 1;
    }

    .gbp-field label {
        font-size: 12px;
    }

    .gbp-location-search-input,
    .gbp-tip-unitate-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .gbp-location-card {
        padding: 15px;
    }

    .gbp-location-name {
        font-size: 16px;
    }

    .gbp-location-links {
        flex-direction: column;
        gap: 10px;
    }

    .gbp-location-links a {
        display: block;
        text-align: center;
        padding: 8px;
        background: #f5f5f5;
        border-radius: 4px;
    }

    .gbp-add-to-cart-button {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* Accessibility */
.gbp-location-search-input:focus-visible,
.gbp-tip-unitate-select:focus-visible,
.gbp-change-location:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Loading Animation */
.gbp-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #007cba;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar Styling for Results */
.gbp-search-results::-webkit-scrollbar {
    width: 8px;
}

.gbp-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gbp-search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.gbp-search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Lightbox */
.gbp-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gbp-lightbox.active {
    display: flex;
}

.gbp-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.gbp-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.gbp-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.gbp-lightbox-close:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .gbp-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
    
    /* Product Card Mobile Spacing */
    .gbp-product-card {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }
    
    /* Product Price Mobile */
    .gbp-product-price {
        padding: 12px 15px 8px;
    }
    
    .gbp-sale-price,
    .gbp-price {
        font-size: 28px;
    }
    
    .gbp-regular-price {
        font-size: 16px;
    }
    
    .gbp-sale-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    /* Stock Status Mobile */
    .gbp-stock-status {
        padding: 6px 15px 10px;
    }
    
    /* Form Fields Mobile */
    .gbp-form-fields {
        padding: 12px 15px 0;
        gap: 12px;
    }
    
    .gbp-field {
        margin-bottom: 0;
    }
    
    .gbp-field label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .gbp-quantity-field input,
    .gbp-tip-unitate-select {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Location Field Mobile */
    .gbp-location-field {
        margin-bottom: 0;
        padding: 0 15px 12px;
    }
    
    .gbp-location-search-input {
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    /* Add to Cart Button Mobile */
    .gbp-add-to-cart-button,
    button.single_add_to_cart_button {
        max-width: 330px !important;
        margin: 20px auto 15px;
        padding: 16px 20px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .gbp-button-icon {
        font-size: 20px;
    }
    
    /* Additional Info Mobile */
    .gbp-additional-info {
        padding: 10px 15px 15px;
    }
    
    .gbp-additional-info p {
        font-size: 11px;
    }
    
    /* Selected Location Card Mobile */
    .gbp-selected-location {
        padding: 12px;
        margin: 0 15px 12px;
    }
    
    .gbp-selected-location h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .gbp-selected-location p {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .gbp-location-actions {
        gap: 8px;
        margin-top: 8px;
    }
    
    .gbp-location-actions a,
    .gbp-change-location {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ========================================
   Card Configurator Styles
   ReviewMagnet Branding: #E8A838 gold, #2D8F4E green, #333 text
   ======================================== */

.gbp-card-configurator {
    margin: 0 0 24px;
}

/* Profile Mode Radio Buttons */
.gbp-profile-mode {
    margin-bottom: 24px;
}

.gbp-mode-title {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.gbp-mode-option {
    display: block;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 2px solid #e0dcd4;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
    color: #444;
}

.gbp-mode-option:hover {
    border-color: #E8A838;
    background: #fffcf5;
}

.gbp-mode-option--active {
    border-color: #E8A838;
    background: linear-gradient(135deg, #fffcf5 0%, #fff8eb 100%);
    box-shadow: 0 0 0 1px rgba(232, 168, 56, 0.15);
}

.gbp-mode-option input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
    accent-color: #E8A838;
}

/* Separator */
.gbp-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0dcd4, transparent);
    margin: 24px 0;
    border: none;
}

/* Cards Configuration Section */
.gbp-cards-config {
    margin-bottom: 20px;
}

.gbp-config-heading {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.gbp-config-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Card Rows — stacked layout with border */
.gbp-card-configurator .gbp-card-row {
    margin-bottom: 12px !important;
    padding: 12px 14px !important;
    border: 2px solid #e0dcd4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box !important;
}

.gbp-card-configurator .gbp-card-row:hover {
    border-color: #E8A838;
    box-shadow: 0 2px 12px rgba(232, 168, 56, 0.08);
}

/* Card Row Header (number + actions) */
.gbp-card-configurator .gbp-card-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gbp-card-configurator .gbp-card-row-number {
    font-weight: 700;
    font-size: 12px;
    color: #E8A838;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fields stacked vertically */
.gbp-card-configurator .gbp-card-row-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.gbp-card-configurator .gbp-card-location-col,
.gbp-card-configurator .gbp-card-color-col {
    width: 100%;
}

.gbp-card-configurator .gbp-card-location-col label,
.gbp-card-configurator .gbp-card-color-col label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #333 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.gbp-card-configurator .gbp-card-location-col label .required,
.gbp-card-configurator .gbp-card-color-col label .required {
    color: #E8A838;
}

/* Card Actions (add/remove) — inline in header */
.gbp-card-actions-col {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Card Location Search */
.gbp-card-configurator .gbp-card-location-search-wrapper {
    position: relative;
}

.gbp-card-configurator .gbp-card-search-icon {
    position: absolute;
    left: 10px;
    top: 0;
    line-height: 34px;
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
}

.gbp-card-configurator .gbp-card-location-input {
    width: 100% !important;
    padding: 6px 10px 6px 28px !important;
    height: 34px !important;
    min-height: 0 !important;
    border: 1px solid #d4d0c8 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: #fafaf8 !important;
}

.gbp-card-configurator .gbp-card-location-input:focus {
    outline: none;
    border-color: #E8A838;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.12);
    background: #fff;
}

.gbp-card-configurator .gbp-card-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d4d0c8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
}

.gbp-card-configurator .gbp-card-search-result {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0ede8;
    transition: background 0.15s;
}

.gbp-card-configurator .gbp-card-search-result:hover {
    background: #fffcf5;
}

.gbp-card-configurator .gbp-card-search-result:last-child {
    border-bottom: none;
}

.gbp-card-configurator .gbp-card-result-name {
    font-weight: 600;
    font-size: 13px;
    color: #222;
    margin-bottom: 1px;
}

.gbp-card-configurator .gbp-card-result-address {
    font-size: 11px;
    color: #888;
}

.gbp-card-configurator .gbp-card-result-rating {
    font-size: 11px;
    color: #E8A838;
    margin-top: 2px;
}

.gbp-card-configurator .gbp-card-no-results {
    padding: 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Selected Location Display */
.gbp-card-configurator .gbp-card-selected-location {
    margin-top: 8px;
}

.gbp-card-configurator .gbp-card-location-card {
    background: #fff;
    border: 2px solid #E8A838;
    border-radius: 8px;
    padding: 16px;
}

.gbp-card-configurator .gbp-card-location-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.gbp-card-configurator .gbp-card-location-icon {
    font-size: 20px;
    margin-right: 8px;
}

.gbp-card-configurator .gbp-card-selected-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.gbp-card-configurator .gbp-card-location-details {
    margin-bottom: 12px;
}

.gbp-card-configurator .gbp-card-location-details p {
    margin: 4px 0 !important;
    font-size: 13px;
}

.gbp-card-configurator .gbp-card-selected-address {
    color: #555;
}

.gbp-card-configurator .gbp-card-selected-rating {
    color: #f90;
    font-weight: 500;
}

.gbp-card-configurator .gbp-card-location-links {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.gbp-card-configurator .gbp-card-location-links a {
    color: #E8A838;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.gbp-card-configurator .gbp-card-location-links a:hover {
    color: #c48a20;
    text-decoration: underline;
}

.gbp-card-configurator .gbp-card-change-location {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.gbp-card-configurator .gbp-card-change-location:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Color Select */
.gbp-card-configurator .gbp-card-color-select,
.gbp-card-configurator .gbp-card-color-input {
    width: 100% !important;
    padding: 6px 10px !important;
    height: 34px !important;
    max-height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 1px solid #d4d0c8 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    background-color: #fafaf8 !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none !important;
    line-height: 1.2 !important;
}

.gbp-card-configurator .gbp-card-color-select:focus,
.gbp-card-configurator .gbp-card-color-input:focus {
    outline: none;
    border-color: #E8A838;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.12);
    background: #fff;
}

/* Add/Remove Row Buttons */
.gbp-card-configurator .gbp-add-card-row,
.gbp-card-configurator .gbp-remove-card-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border: 1.5px solid;
    background: #fff;
    transition: all 0.2s ease;
    padding: 0;
}

.gbp-card-configurator .gbp-add-card-row {
    color: #2D8F4E;
    border-color: #2D8F4E;
}

.gbp-card-configurator .gbp-add-card-row:hover {
    background: #2D8F4E;
    color: #fff;
}

.gbp-remove-card-row {
    color: #c0392b;
    border-color: #c0392b;
}

.gbp-card-configurator .gbp-remove-card-row:hover {
    background: #c0392b;
    color: #fff;
}

/* Options Row (color + qty side by side) */
.gbp-card-configurator .gbp-card-options-row {
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
}

.gbp-card-configurator .gbp-card-options-row .gbp-card-color-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.gbp-card-configurator .gbp-card-options-row .gbp-card-qty-col {
    flex: 0 0 140px !important;
}

.gbp-card-configurator .gbp-card-qty-col label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #333 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.gbp-card-configurator .gbp-card-qty-col label .required {
    color: #E8A838;
}

.gbp-card-configurator .gbp-card-qty-input {
    width: 100% !important;
    padding: 6px 10px !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    border: 1.5px solid #e0dcd4 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #333;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box !important;
}

.gbp-card-configurator .gbp-card-qty-input:focus {
    outline: none;
    border-color: #E8A838;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.12);
    background: #fff;
}

/* Add Location Button */
.gbp-add-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: #2D8F4E;
    background: transparent;
    border: 1.5px dashed #2D8F4E;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gbp-add-location-btn:hover {
    background: rgba(45, 143, 78, 0.06);
    border-color: #24773f;
}

/* Hide WC default quantity on card configurator pages */
.gbp-card-configurator ~ .quantity {
    display: none !important;
}

/* Help Checkbox */
.gbp-help-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    color: #444;
}

.gbp-help-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #E8A838;
    width: 18px;
    height: 18px;
}

/* Info Banner — ReviewMagnet green */
.gbp-info-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2D8F4E;
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 20px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

/* Form Bottom (Quantity + Button) */
.gbp-form-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.gbp-form-bottom .quantity {
    flex-shrink: 0;
}

.gbp-form-bottom .quantity input {
    border: 1px solid #d4d0c8;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

/* Add-to-cart button — ReviewMagnet gold */
.gbp-card-configurator ~ .gbp-info-banner + .gbp-form-bottom .gbp-add-to-cart-button,
.gbp-complete-form .gbp-form-bottom .gbp-add-to-cart-button {
    background: linear-gradient(135deg, #f0c850 0%, #E8A838 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.25);
}

.gbp-complete-form .gbp-form-bottom .gbp-add-to-cart-button:hover {
    background: linear-gradient(135deg, #E8A838 0%, #d4952e 100%);
    box-shadow: 0 4px 16px rgba(232, 168, 56, 0.35);
    transform: translateY(-1px);
}

/* Card Configurator Validation Error */
.gbp-card-validation-error {
    margin-bottom: 12px;
}

/* Card Configurator Product Card wrapper */
.gbp-complete-form.gbp-product-card .gbp-product-price {
    padding: 16px 20px 0;
}

.gbp-complete-form.gbp-product-card .gbp-stock-status {
    padding: 8px 20px 16px;
}

/* Card configurator shortcode: full width */
.gbp-complete-form.gbp-product-card:has(.gbp-card-configurator) {
    max-width: 100%;
    margin: 0;
}

/* Responsive: Card Configurator */
@media (max-width: 768px) {
    .gbp-card-configurator {
        margin: 0 0 20px;
    }

    .gbp-complete-form.gbp-product-card:has(.gbp-card-configurator) {
        margin: 0;
    }

    .gbp-card-configurator .gbp-card-row {
        padding: 10px 12px !important;
    }

    .gbp-card-configurator .gbp-card-row-fields {
        gap: 8px !important;
    }

    .gbp-mode-option {
        font-size: 13px;
        padding: 12px 14px;
    }

    .gbp-config-heading {
        font-size: 18px;
    }

    .gbp-card-configurator .gbp-card-options-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .gbp-card-configurator .gbp-card-qty-col {
        flex: 1 !important;
    }

    .gbp-card-configurator .gbp-add-location-btn {
        width: 100%;
        justify-content: center;
    }

    .gbp-form-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .gbp-form-bottom .gbp-add-to-cart-button {
        width: 100%;
    }
}
