/**
 * Pavaglione Gift Box Builder - STEP BY STEP STYLES
 * Version: 4.0 - STEP NAVIGATION LAYOUT
 * 
 */

/* ====================
   RESET E BASE
   ==================== */

.pgb-gift-box-builder * {
    box-sizing: border-box !important;
}

.pgb-gift-box-builder {
    max-width: 1400px !important;
    margin: 30px auto !important;
    padding: 30px !important;
    border-radius: 16px !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    font-family:"Outfit", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* ====================
   HEADER PRINCIPALE
   ==================== */

.pgb-builder-header {
    text-align: center !important;
    margin-bottom: 40px !important;
    padding-bottom: 30px !important;
    border-bottom: 3px solid #ffe4ff !important;
}

.pgb-main-title {
    color: #7b539d !important;
    font-size: 36px !important;
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.pgb-main-subtitle {
    color: #7b539d  !important;
    font-size: 18px !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.6 !important;
}

.pgb-main-description {
    color: #7b539d !important;
    font-size: 16px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.6 !important;
}

.pgb-main-note {
    color: #eb308a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 10px 0 0 0 !important;
}

/* ====================
   INDICATORE STEP PROGRESS
   ==================== */

.pgb-step-indicator {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 40px !important;
    padding: 25px !important;
    background: #fef4ff;
    border-radius: 12px !important;
    position: relative !important;
    border: 1px solid #ad8dc9;
}

.pgb-step-indicator::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50px !important;
    right: 50px !important;
    height: 3px !important;
    background: rgba(255, 197, 255, 0.5) !important;
    z-index: 0 !important;
}

.pgb-step-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.pgb-step-item:hover .pgb-step-number {
    transform: scale(1.1) !important;
}

.pgb-step-number {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: white !important;
    border: 3px solid #ffe4ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #7b539d  !important;
    transition: all 0.3s ease !important;
}

.pgb-step-item.pgb-step-active .pgb-step-number {
    background: #fef4ff !important;
    color: #eb308a !important;
    border-color: #eb308a !important;
    box-shadow: 0 4px 15px rgba(255, 128, 255, 0.4) !important;
    transform: scale(1.15) !important;
}

.pgb-step-item.pgb-step-completed .pgb-step-number,
.pgb-step-item.pgb-step-has-products .pgb-step-number {
    background: #e0ffed  !important;
    color: #157139 !important;
    border-color: #157139 !important;
}

.pgb-step-label {
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #7b539d !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.pgb-step-emoji {
    font-size: 18px !important;
}

.pgb-step-text {
    text-transform: capitalize !important;
}

/* ====================
   AREA STEP CORRENTE
   ==================== */

.pgb-step-navigation {
    margin-bottom: 30px !important;
}

.pgb-step-header {
    text-align: center !important;
    padding: 30px !important;
    background: #fdebff !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    position: relative !important;
}

.pgb-step-required-badge {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: #7b539d !important;
    color: white !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(255, 128, 255, 0.3) !important;
}
.pgb-step-icon-big {
        font-size: 2em;
}
.pgb-step-title {
    color: #7b539d !important;
    font-size: 25px !important;
    margin: 0 0 10px 0 !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

.pgb-step-emoji-big {
    font-size: 40px !important;
}

.pgb-step-description {
    color: #7b539d  !important;
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ====================
   HINT SCONTO
   ==================== */

.pgb-discount-hint {
    background: #fbf7ed!important;
    border-left: 4px solid #ad8dc9 !important;
    color: #0a0a0a !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.1) !important;
}

.pgb-hint-icon {
    font-size: 24px !important;
}

.pgb-hint-text {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* ====================
   BADGE SCONTO ATTIVO
   ==================== */

.pgb-discount-badge {
    background: #c6f4d8;
    color: #0a0a0a !important;
    padding: 15px 25px !important;
    border-radius: 30px !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
    animation: pulse 2s infinite !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}
.pgb-discount-badge.pgb-discount-active {
    display: flex !important;
}

.pgb-badge-icon {
    font-size: 24px !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ====================
   MESSAGGI
   ==================== */

.pgb-messages {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    max-width: 400px !important;
}

.pgb-message {
    padding: 15px 20px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    animation: slideIn 0.3s ease-out !important;
}

.pgb-message-success {
    background: #c6f4d8!important;
    color: #157139 !important;
    border-left: 4px solid #157139 !important;
}

.pgb-message-error {
background: #fbf7ed!important;
    border-left: 4px solid #ad8dc9 !important;
        color: #f31d3b !important;
}

.pgb-message-warning {
background: #fbf7ed!important;
    border-left: 4px solid #ad8dc9 !important;
        color: #f31d3b !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================
   LAYOUT PRINCIPALE
   ==================== */

.pgb-builder-main {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 30px !important;
    align-items: start !important;
}

.pgb-products-panel,
.pgb-box-summary-panel {
    background: #fef4ff !important;
    border-radius: 16px !important;
        border: 1px solid #ad8dc9;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(255, 197, 255, 0.15) !important;
}

.pgb-panel-title {
    color: #7b539d !important;
    font-size: 24px !important;
    margin: 0 0 25px 0 !important;
    font-weight: 700 !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #ffe4ff !important;
}

/* ====================
   GRIGLIA PRODOTTI
   ==================== */

.pgb-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.pgb-product-card {
    background: white !important;
    border: 3px solid #ffe5ff !important;
    border-radius: 12px !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.pgb-product-card:hover {
    border-color: #ffe4ff !important;
    box-shadow: 0 8px 25px rgba(255, 197, 255, 0.3) !important;
    transform: translateY(-5px) !important;
}

.pgb-product-card.pgb-selected {
    border-color: #ff98ca !important;
    box-shadow: 0 8px 30px rgba(255, 128, 255, 0.4) !important;
    background: linear-gradient(to bottom, white 0%, #ffe5ff 100%) !important;
}

.pgb-product-card.pgb-max-reached {
    opacity: 0.7 !important;
}

.pgb-product-card.pgb-max-reached .pgb-add-product {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

.pgb-quantity-badge {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: #eb308a !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    box-shadow: 0 4px 12px rgba(255, 128, 255, 0.5) !important;
    z-index: 10 !important;
}

.pgb-product-image-wrapper {
    width: 100% !important;
    height: 200px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.pgb-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.pgb-product-card:hover .pgb-product-image {
    transform: scale(1.1) !important;
}

.pgb-product-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #7b539d !important;
    margin: 0 !important;
    padding: 15px 15px 10px !important;
    line-height: 1.4 !important;
    min-height: 65px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.pgb-product-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    margin: 0 !important;
    padding: 0 15px 15px !important;
}

.pgb-gift-price {
    display: inline-block !important;
    background: #c6f4d8 !important;
    color: #0a0a0a !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px #74e2a042 !important;
    animation: giftShine 2s infinite !important;
}

@keyframes giftShine {
    0%, 100% { box-shadow: 0 4px 12px #6aac83a9; }
    50% { box-shadow: 0 4px 20px #c6f4d85e; }
}

.pgb-quantity-controls {
    display: flex !important;
    gap: 8px !important;
    padding: 15px !important;
    background: #ffe5ff !important;
    border-top: 2px solid rgba(255, 197, 255, 0.3) !important;
    margin-top: auto !important;
}

.pgb-add-product,
.pgb-remove-product {
    flex: 1 !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    text-transform: uppercase;
}

.pgb-add-product {
    background: #ad8dc9;
    color: white !important;
    flex: 2 !important;
}

.pgb-add-product:hover {
    box-shadow: 0 4px 15px rgba(255, 128, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    background: #eb308a;
}

.pgb-remove-product {
    background: white !important;
    color: #eb308a !important;
    border: 2px solid #ffe4ff !important;
    font-size: 20px !important;
    flex: 0 0 45px !important;
}

.pgb-remove-product:hover {
    background: #eb308a !important;
    color: white !important;
    border-color: #eb308a !important;
}

/* ====================
   PULSANTI NAVIGAZIONE STEP
   ==================== */

.pgb-step-buttons {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    padding: 20px 0 0 0 !important;
}

.pgb-nav-prev,
.pgb-nav-next {
    padding: 15px 40px !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 160px !important;
    text-transform: uppercase;
}

.pgb-nav-prev {
    background: white !important;
    color: #eb308a !important;
    border: 2px solid #ffe4ff !important;
}

.pgb-nav-prev:hover:not(:disabled) {
    background: #ffe5ff !important;
    border-color: #ffa1ce !important;
    transform: translateX(-5px) !important;
}

.pgb-nav-next {
    background: #ad8dc9 !important;
    color: white !important;
}

.pgb-nav-next:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 128, 255, 0.4) !important;
    transform: translateX(5px) !important;
}

.pgb-nav-prev:disabled,
.pgb-nav-next:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.pgb-btn-complete {
    background: #ad8dc9 !important;
}

.pgb-btn-complete:hover:not(:disabled) {
    background: #ad8dc9 !important;
}

/* ====================
   RIEPILOGO SIDEBAR
   ==================== */
/* Toggle riepilogo (desktop hidden) */
.pgb-summary-toggle {
    display: none !important;
}

.pgb-summary-toggle-label {
    font-weight: 600 !important;
}

.pgb-summary-toggle-icon {
    font-size: 20px !important;
}

.pgb-summary-content {
    /* desktop: normale */
}
.pgb-capacity-info {
    background: #fdebff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.pgb-capacity-text {
    font-size: 18px !important;
    color: #7b539d !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.pgb-box-summary {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.pgb-selected-products-list {
    max-height: 400px !important;
    overflow-y: auto !important;
    padding-right: 5px !important;
}

.pgb-selected-products-list::-webkit-scrollbar {
    width: 8px !important;
}

.pgb-selected-products-list::-webkit-scrollbar-track {
    background: #ffe5ff !important;
    border-radius: 10px !important;
}

.pgb-selected-products-list::-webkit-scrollbar-thumb {
    background: #ffe4ff !important;
    border-radius: 10px !important;
}

.pgb-selected-product {
    background: white !important;
    border: 2px solid #ffe5ff !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    transition: all 0.3s ease !important;
}

.pgb-selected-product:hover {
    border-color: #ffe4ff !important;
    box-shadow: 0 4px 12px rgba(255, 197, 255, 0.2) !important;
}

.pgb-selected-product-image {
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: #ffe5ff !important;
    flex-shrink: 0 !important;
}

.pgb-selected-product-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.pgb-selected-product-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #7b539d !important;
    margin: 0 0 6px 0 !important;
    word-wrap: break-word !important;
}

.pgb-selected-product-details {
    font-size: 13px !important;
    color: #7b539d  !important;
    font-weight: 600 !important;
}

.pgb-selected-product-details.pgb-gift-text {
    color: #74E2A0 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.pgb-selected-product-remove {
    background: #ffe5ff !important;
    color: #eb308a !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.pgb-selected-product-remove:hover {
    background: #eb308a !important;
    color: white !important;
    transform: rotate(90deg) !important;
}

/* ====================
   PREZZI
   ==================== */

.pgb-price-summary {
    background: #fdebff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.pgb-price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
    color: #7b539d !important;
}

.pgb-price-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 197, 255, 0.5) !important;
}

.pgb-price-label {
    font-weight: 600 !important;
}

.pgb-price-value {
    font-weight: 700 !important;
    color: #0a0a0a !important;
}

.pgb-discount-row .pgb-price-value {
    color: #57cf87 !important;
}

.pgb-total-row {
    padding-top: 18px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.pgb-total-row .pgb-price-value {
    font-size: 28px !important;
}

/* ====================
   PULSANTE CARRELLO
   ==================== */

.pgb-add-to-cart-button {
    width: 100% !important;
    padding: 20px !important;
    background: #ad8dc9 !important;
    color: white !important;
    border: none !important;
    border-radius:50px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(255, 128, 255, 0.4) !important;
    text-transform: uppercase;
}

.pgb-add-to-cart-button:hover:not(:disabled) {
    background: #eb308a !important;
    box-shadow: 0 8px 30px rgba(255, 128, 255, 0.5) !important;
    transform: translateY(-3px) !important;
}

.pgb-add-to-cart-button:disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ====================
   RIEPILOGO FINALE
   ==================== */

.pgb-final-summary {
    padding: 20px !important;
}

.pgb-final-title {
    color: #7b539d !important;
    font-size: 32px !important;
    text-align: center !important;
    margin: 0 0 30px 0 !important;
    font-weight: 700 !important;
}

.pgb-final-products {
    margin-bottom: 30px !important;
}

.pgb-final-category {
    margin-bottom: 30px !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 2px solid #ffe4ff !important;
}

.pgb-final-category-title {
    color: #7b539d !important;
    font-size: 20px !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #ffe5ff !important;
    font-weight: 700 !important;
}

.pgb-final-category-products {
    display: grid !important;
    gap: 15px !important;
}

.pgb-final-product {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px !important;
    background: #ffe5ff !important;
    border-radius: 10px !important;
}

.pgb-final-product-image {
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: white !important;
    flex-shrink: 0 !important;
}

.pgb-final-product-info {
    flex: 1 !important;
}

.pgb-final-product-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #7b539d !important;
    margin: 0 0 6px 0 !important;
}

.pgb-final-product-details {
    font-size: 14px !important;
    color: #7b539d  !important;
    font-weight: 600 !important;
}

.pgb-gift-label {
    display: inline-block !important;
    background: linear-gradient(135deg, #66BB6A 0%, #74E2A0 100%) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 15px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

.pgb-final-actions {
    text-align: center !important;
    display: flex;
    justify-content: center;
    gap: 8px;
flex-direction: row!important;}
.pgb-final-actions .pgb-add-to-cart-button {
    width: auto !important;
}
.pgb-edit-selection-btn {
    padding: 15px 40px !important;
    background: white !important;
    color: #eb308a !important;
    border: 2px solid #ffe4ff !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.pgb-edit-selection-btn:hover {
    background: #ffe5ff !important;
    border-color: #ff9acb !important;
    transform: translateX(-5px) !important;
}

/* ====================
   STATO VUOTO
   ==================== */

.pgb-empty-state {
    text-align: center !important;
    padding: 50px 20px !important;
    color: #7b539d  !important;
    grid-column: 1 / -1 !important;
}

.pgb-empty-state-icon {
    font-size: 64px !important;
    margin-bottom: 20px !important;
    opacity: 0.6 !important;
}

.pgb-empty-state-text {
    font-size: 18px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ====================
   LOADING
   ==================== */

.pgb-loading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    grid-column: 1 / -1 !important;
}

.pgb-spinner {
    border: 4px solid #fef4ff !important;
    border-top: 4px solid #ad8dc9 !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================
   RESPONSIVE - TABLET
   ==================== */

@media (max-width: 992px) {
    .pgb-builder-main {
        grid-template-columns: 1fr !important;
    }
    
    .pgb-box-summary-panel {
        order: -1 !important;
    }
    
    .pgb-step-indicator {
        gap: 10px !important;
        padding: 20px !important;
    }
    
    .pgb-step-number {
        width: 70px !important;
        height: 70px !important;
        font-size: 16px !important;
    }
    
    .pgb-step-label {
        font-size: 11px !important;
    }
    
    .pgb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
}

/* ====================
   RESPONSIVE - MOBILE
   ==================== */

@media (max-width: 768px) {
        .pgb-builder-main {
        display: block !important; 
    }
.pgb-final-actions {

flex-direction: column!important;}
    .pgb-products-panel {
        margin-bottom: 110px !important;
    }

    .pgb-box-summary-panel {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
.pgb-summary-toggle-label {
    text-transform: uppercase;
    font-size: 1.3em;
}
    .pgb-summary-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        padding: 12px 18px !important;
        background: #fdebff !important;
        border: 1px solid #ad8dc9 !important;
        border-radius: 16px 16px 0 0 !important;
        cursor: pointer !important;
        font-size: 16px !important;
        color: #7b539d !important;
        text-align: left !important;
    }

    .pgb-summary-toggle-icon {
        font-size: 22px !important;
    }

    .pgb-summary-content {
        max-height: 0;
        overflow: hidden;
        background: #fef4ff !important;
        border-left: 1px solid #ad8dc9 !important;
        border-right: 1px solid #ad8dc9 !important;
        border-bottom: 1px solid #ad8dc9 !important;
        border-radius: 0 0 16px 16px !important;
        padding: 0 18px 0 !important;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .pgb-box-summary-panel.pgb-summary-open .pgb-summary-content {
        max-height: 90vh; 
        padding: 12px 18px 18px !important;
    }

    .pgb-panel-title {
        margin-top: 0 !important;
        display: none !important;
    }

    .pgb-capacity-info {
        margin-top: 5px !important;
    }

.pgb-selected-products-list {
    max-height: 170px !important;
}
.pgb-add-to-cart-button {
    padding: 10px !important;
}
    .pgb-gift-box-builder {
        padding: 20px 15px !important;
    }
    .pgb-product-price {
    font-size: 16px !important;
    font-weight: 500 !important;
    }
    .pgb-product-name {
    font-size: 14px !important;
    line-height: 1.1 !important;
    }
    .pgb-quantity-controls {
    gap: 5px !important;
    padding: 5px !important;
    }
    .pgb-add-product, .pgb-remove-product {
    padding: 5px !important;
        font-size: 14px !important;
    }
    .pgb-gift-price {
   
    padding: 8px 10px !important;
   
    font-size: 13px !important;
    }
    .pgb-nav-prev, .pgb-nav-next {
    padding: 15px !important;}
    .pgb-remove-product {

    font-size: 12px !important;
    }
    .pgb-products-panel, .pgb-box-summary-panel{
                padding: 12px 12px 0 12px !important;
    }
    .pgb-empty-state{
            padding: 10px !important;
    }
    .pgb-main-title {
        font-size: 28px !important;
    }
    
    .pgb-main-subtitle {
        font-size: 16px !important;
    }
    
    .pgb-step-indicator {
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 15px !important;
    }
    
    .pgb-step-indicator::before {
        display: none !important;
    }
    
    .pgb-step-item {
        flex: 0 0 auto !important;
        min-width: 80px !important;
    }
    
    .pgb-step-title {
        font-size: 22px !important;
        flex-direction: column !important;
    }
    
    .pgb-step-emoji-big {
        font-size: 32px !important;
    }
    
    .pgb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 12px !important;
    }
    
    .pgb-product-image-wrapper {
        height: 150px !important;
    }
    
    .pgb-step-buttons {
        flex-direction: column !important;
    }
    
    .pgb-nav-prev,
    .pgb-nav-next {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .pgb-products-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}


.pgb-step-icon {
    font-size: 28px!important;
}
.pgb-step-icon-circle {
    font-size:2.5em;
    line-height: 2.5}