/* Plant Pot Upsell Styles */
.pot-upsell-wrapper {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

.pot-upsell-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pot-options-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0 10px 0;
    margin-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.pot-options-grid::-webkit-scrollbar {
    height: 6px;
}

.pot-options-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pot-options-grid::-webkit-scrollbar-thumb {
    background: #2d653e;
    border-radius: 3px;
}

.pot-options-grid::-webkit-scrollbar-thumb:hover {
    background: #1f4a2c;
}

.pot-option {
    position: relative;
    min-width: 140px;
    max-width: 140px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.pot-option:hover,
.pot-option.hover {
    border-color: #2d653e;
    box-shadow: 0 2px 8px rgba(45, 101, 62, 0.15);
    transform: translateY(-2px);
}

.pot-option.selected {
    border-color: #2d653e;
    background-color: #f0f7f2;
    box-shadow: 0 0 0 1px #2d653e;
}

.pot-option input[type="radio"] {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 16px;
    height: 16px;
    accent-color: #2d653e;
}

.pot-option-label {
    display: block;
    padding: 10px;
    cursor: pointer;
    margin: 0;
}

.pot-image {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pot-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.pot-placeholder {
    font-size: 32px;
    color: #ccc;
}

.pot-details {
    text-align: center;
}

.pot-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
    line-height: 1.2;
}

.pot-diameter {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.pot-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.discounted-price {
    font-size: 13px;
    font-weight: 600;
    color: #2d653e;
}

.free-pot {
    font-size: 13px;
    font-weight: 600;
    color: #2d653e;
}

.discount-badge {
    background-color: #2d653e;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Total price display */
.pot-total-price {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f0f7f2;
    border: 1px solid #2d653e;
    border-radius: 6px;
    text-align: center;
}

.total-price-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.total-price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2d653e;
}

/* Image modal styles */
.pot-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pot-image-modal.active {
    opacity: 1;
    visibility: visible;
}

.pot-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pot-image-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.pot-image-header {
    text-align: center;
    margin-bottom: 15px;
}

.pot-modal-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.pot-modal-diameter {
    font-size: 14px;
    color: #666;
}

.pot-image-loading {
    text-align: center;
    position: relative;
}

.thumbnail-placeholder {
    max-width: 200px;
    max-height: 200px;
    opacity: 0.5;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
}

.full-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .pot-options-grid {
        gap: 10px;
        padding: 5px 0;
    }
    
    .pot-option {
        min-width: 120px;
        max-width: 120px;
    }
    
    .pot-option-label {
        padding: 8px;
    }
    
    .pot-image {
        height: 70px;
    }
    
    .pot-name {
        font-size: 12px;
    }
    
    .pot-diameter {
        font-size: 10px;
    }
    
    .discounted-price {
        font-size: 12px;
    }
    
    .discount-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .total-price-amount {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pot-options-grid {
        gap: 8px;
    }
    
    .pot-option {
        min-width: 110px;
        max-width: 110px;
    }
    
    .pot-option-label {
        padding: 6px;
    }
    
    .pot-image {
        height: 60px;
    }
    
    .pot-name {
        font-size: 11px;
    }
    
    .discounted-price {
        font-size: 11px;
    }
}

/* Sticky add to cart modal styles */
.commercekit_sticky-atc .pot-upsell-wrapper,
.sticky-atc .pot-upsell-wrapper {
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 15px 0;
    padding: 12px;
    border-radius: 6px;
}

.commercekit_sticky-atc .pot-upsell-title,
.sticky-atc .pot-upsell-title {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.commercekit_sticky-atc .pot-options-grid,
.sticky-atc .pot-options-grid {
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 8px;
}

.commercekit_sticky-atc .pot-option,
.sticky-atc .pot-option {
    border: 2px solid #e0e0e0;
    min-width: 100px;
    max-width: 100px;
    cursor: pointer;
}

.commercekit_sticky-atc .pot-image,
.sticky-atc .pot-image {
    background-color: #f9f9f9;
    height: 60px;
}

.commercekit_sticky-atc .pot-name,
.sticky-atc .pot-name {
    color: #333;
    font-size: 11px;
    line-height: 1.1;
}

.commercekit_sticky-atc .pot-diameter,
.sticky-atc .pot-diameter {
    color: #666;
    font-size: 10px;
}

.commercekit_sticky-atc .pot-price,
.sticky-atc .pot-price {
    gap: 2px;
}

.commercekit_sticky-atc .original-price,
.sticky-atc .original-price {
    color: #999;
    font-size: 10px;
}

.commercekit_sticky-atc .discounted-price,
.sticky-atc .discounted-price {
    color: #2d653e;
    font-size: 11px;
}

.commercekit_sticky-atc .discount-badge,
.sticky-atc .discount-badge {
    background-color: #2d653e;
    font-size: 9px;
    padding: 1px 4px;
}

.commercekit_sticky-atc .pot-total-price,
.sticky-atc .pot-total-price {
    background-color: #f0f7f2;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 4px;
}

.commercekit_sticky-atc .total-price-amount,
.sticky-atc .total-price-amount {
    color: #2d653e;
    font-size: 15px;
}

.commercekit_sticky-atc .pot-option-label,
.sticky-atc .pot-option-label {
    cursor: pointer;
    padding: 6px;
}

/* Animation for smooth transitions */
.pot-option {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Focus styles for accessibility */
.pot-option:focus-within {
    outline: 2px solid #2d653e;
    outline-offset: 2px;
}

.pot-option input[type="radio"]:focus {
    outline: none;
}
/* Prevent sticky modal from closing when clicking pot selector */
.commercekit_sticky-atc .pot-upsell-wrapper,
.sticky-atc .pot-upsell-wrapper {
    pointer-events: auto;
    position: relative;
    z-index: 999;
}

.commercekit_sticky-atc .pot-option,
.sticky-atc .pot-option {
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.commercekit_sticky-atc .pot-option-label,
.sticky-atc .pot-option-label {
    pointer-events: auto;
    position: relative;
    z-index: 1001;
}

/* Ensure pot options are fully clickable in sticky modal */
.commercekit_sticky-atc .pot-option *,
.sticky-atc .pot-option * {
    pointer-events: none;
}

.commercekit_sticky-atc .pot-option input[type="radio"],
.sticky-atc .pot-option input[type="radio"] {
    pointer-events: auto;
}