/**
 * Gift Option Styles
 */

.gift-option-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
}

.gift-option-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.gift-option-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.gift-option-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.gift-option-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gift-option-content {
    flex-grow: 1;
}

.gift-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.gift-option-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gift-option-checkbox {
    margin-bottom: 10px;
}

.gift-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.gift-option-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gift-option-label-text {
    color: #333;
}

.gift-option-message {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.gift-option-message label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.gift-option-message-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.gift-option-message-input:focus {
    outline: none;
    border-color: #1979c3;
    box-shadow: 0 0 3px rgba(25, 121, 195, 0.3);
}

.gift-option-message-counter {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.gift-option-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gift-option-loading .loader {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1979c3;
    border-radius: 50%;
    animation: gift-option-spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .gift-option-container {
        flex-direction: column;
    }
    
    .gift-option-image {
        width: 50px;
        height: 50px;
    }
}

/* Cart page totals styling */
.totals.gift-option .mark,
.totals.gift-option .amount {
    font-size: 14px;
}
