.ah-oil-builder-wrapper {
    margin: 30px 0;
    padding: 0;
}

.ah-builder-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.ah-builder-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px !important;
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
}

.ah-builder-description::after {
    content: " (Minimum 3 olejki)";
    color: #d63638;
    font-weight: 600;
}

.ah-summary-row:first-child .ah-summary-value {
    transition: color 0.3s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ah-limit-message {
    animation: slideInRight 0.3s ease !important;
}


.ah-oil-builder-wrapper ~ .yith-par-message,
.product:has(.ah-oil-builder-wrapper) .yith-par-message {
    display: none !important;
}

.ah-oils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    margin-bottom: 30px;
}

.ah-oil-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
}

.ah-oil-item:hover {
    transform: translateY(-3px);
}

.ah-oil-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ah-oil-image-wrapper:hover {
    transform: scale(1.05);
}

.ah-oil-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ah-oil-item.has-quantity .ah-oil-image {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ah-oil-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.ah-oil-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.ah-oil-image-wrapper:hover .ah-oil-name {
    opacity: 1;
}

.ah-oil-quantity-wrapper {
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}


.ah-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.ah-qty-btn:active {
    transform: scale(0.95);
}

.ah-oil-quantity {
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 2px;
    -moz-appearance: textfield;
    padding: 0 !important;
    min-height: 0 !important;
}

.ah-oil-quantity::-webkit-outer-spin-button,
.ah-oil-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ah-oil-quantity:focus {
    outline: none;
}

.ah-oil-price {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

.ah-builder-summary-box {
    background: white;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.ah-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.ah-summary-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.ah-summary-label {
    font-size: 15px;
    color: #374151;
}

.ah-summary-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.ah-discount-row {
    color: #10b981;
}

.ah-discount-row .ah-summary-label {
    color: #10b981;
}

.ah-discount-value {
    color: #10b981 !important;
    font-weight: 700;
}

.ah-total-row {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #10b981 !important;
}

.ah-total-row .ah-summary-label strong,
.ah-total-row .ah-summary-value strong {
    font-size: 20px;
    color: #10b981;
}

[data-wvstooltip] {
    position: relative;
}

@media (max-width: 768px) {
    .ah-oils-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px;
    }

    .ah-oil-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .ah-qty-btn {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .ah-oil-quantity {
        width: 28px;
        font-size: 13px;
    }

    .ah-oil-price {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ah-oils-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }

    .ah-builder-summary-box {
        padding: 15px;
    }

    .ah-summary-label,
    .ah-summary-value {
        font-size: 14px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.ah-oil-item.added .ah-oil-image-wrapper {
    animation: pulse 0.3s ease;
}

.ah-builder-notice {
    padding: 20px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    color: #92400e;
    margin: 20px 0;
}
