/* Buy Box Component Styles */
.buy-box {
    background: white;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 14px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.buy-box-price {
    margin-bottom: 10px;
}

.buy-box-price-symbol {
    font-size: 13px;
    color: #565959;
    vertical-align: top;
    margin-right: 2px;
}

.buy-box-price-whole {
    font-size: 28px;
    font-weight: 400;
    color: #0f1111;
    line-height: 1.3;
}

.buy-box-price-fraction {
    font-size: 13px;
    color: #565959;
    vertical-align: top;
}

.buy-box-shipping {
    color: #007185;
    font-size: 14px;
    margin-bottom: 10px;
}

.buy-box-shipping-link {
    color: #007185;
    text-decoration: none;
}

.buy-box-shipping-link:hover {
    color: #c7511f;
    text-decoration: underline;
}

.buy-box-availability {
    color: #007600;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.buy-box-quantity {
    margin-bottom: 12px;
}

.buy-box-quantity-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.buy-box-quantity-select {
    background: #f0f2f2;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 8px 24px 8px 12px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.buy-box-quantity-select:focus {
    outline: 2px solid var(--amazon-orange);
    outline-offset: 2px;
}

.buy-box-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.buy-box-button {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s ease;
    border: 1px solid;
}

.buy-box-button-primary {
    background: linear-gradient(to bottom, #f7ca00, #f0b800);
    border-color: #a88734 #9c7e31 #846a29;
    color: #0f1111;
}

.buy-box-button-primary:hover {
    background: linear-gradient(to bottom, #f5c500, #e6a800);
    border-color: #9c7731;
}

.buy-box-button-secondary {
    background: linear-gradient(to bottom, #ffa724, #ff8f00);
    border-color: #ff8f00;
    color: #0f1111;
}

.buy-box-button-secondary:hover {
    background: linear-gradient(to bottom, #ff9f1a, #ff8500);
    border-color: #e47911;
}

.buy-box-security {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f7f8f8;
    border-radius: 8px;
    margin-bottom: 16px;
}

.buy-box-security-icon {
    width: 16px;
    height: 16px;
    color: #007600;
}

.buy-box-security-text {
    font-size: 12px;
    color: #565959;
    line-height: 1.3;
}

.buy-box-security-link {
    color: #007185;
    text-decoration: none;
}

.buy-box-security-link:hover {
    color: #c7511f;
    text-decoration: underline;
}

.buy-box-details {
    border-top: 1px solid #e7e7e7;
    padding-top: 16px;
}

.buy-box-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
}

.buy-box-detail-label {
    color: #565959;
    font-weight: 400;
}

.buy-box-detail-value {
    color: #0f1111;
    text-align: right;
    flex: 1;
    margin-left: 8px;
}

.buy-box-detail-link {
    color: #007185;
    text-decoration: none;
}

.buy-box-detail-link:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .buy-box {
        position: static;
        margin-top: 20px;
        border-radius: 4px;
    }
    
    .buy-box-buttons {
        gap: 12px;
    }
    
    .buy-box-button {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .buy-box-quantity-select {
        min-height: 44px;
        font-size: 16px;
    }
    
    .buy-box-security {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .buy-box {
        padding: 16px;
        margin: 16px 0;
    }
    
    .buy-box-price-whole {
        font-size: 24px;
    }
    
    .buy-box-button {
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
    }
    
    .buy-box-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .buy-box-detail-value {
        margin-left: 0;
        text-align: left;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .buy-box-button {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    .buy-box-quantity-select {
        min-height: 48px;
        padding: 12px 24px 12px 16px;
    }
    
    .buy-box-security-link,
    .buy-box-detail-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 4px;
    }
}
