/* Wedding Gift Widget - Sage Palette */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Montserrat:wght@300;400;500&display=swap');

:root {
    --wgw-pink: #E5A0A8;
    --wgw-sage: #A3AD62;
    --wgw-light-sage: #F2F3E8;
    --wgw-forest: #50634A;
    --wgw-cream: #F5DCC8;
    --wgw-primary: var(--wgw-pink);
    --wgw-secondary: var(--wgw-sage);
    --wgw-accent: var(--wgw-forest);
    --wgw-light: var(--wgw-light-sage);
    --wgw-white: #ffffff;
    --wgw-shadow: rgba(80, 99, 74, 0.12);
}

.wedding-gift-widget {
    font-family: 'Montserrat', sans-serif;
    color: #2c2c2c;
    padding: 60px 20px;
    background: #F2F3E8;
    position: relative;
    overflow: hidden;
}

.wedding-gift-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(163, 173, 98, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(5deg); }
}

.wgw-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wgw-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.wgw-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #50634A;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.wgw-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #A3AD62;
}

.wgw-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #50634A;
    max-width: 600px;
    margin: 30px auto 0;
    line-height: 1.8;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

/* Gift Cards Grid */
.wgw-gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.wgw-gift-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(80, 99, 74, 0.12);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.wgw-gift-card:nth-child(1) { animation-delay: 0.2s; }
.wgw-gift-card:nth-child(2) { animation-delay: 0.4s; }
.wgw-gift-card:nth-child(3) { animation-delay: 0.6s; }

.wgw-gift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(163, 173, 98, 0.25);
    border-color: #A3AD62;
}

.wgw-gift-card.selected {
    border-color: #A3AD62;
    transform: translateY(-5px);
}

/* Photo image area */
.wgw-gift-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.wgw-gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.wgw-gift-card:hover .wgw-gift-image img {
    transform: scale(1.05);
}

.wgw-gift-image .wgw-selected-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #A3AD62;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.wgw-gift-card.selected .wgw-selected-check {
    opacity: 1;
}

.wgw-gift-card-body {
    padding: 25px 25px 30px;
}

.wgw-gift-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #50634A;
    letter-spacing: 1px;
}

.wgw-gift-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #50634A;
    opacity: 0.8;
    margin: 0 0 22px 0;
    min-height: 55px;
    font-weight: 300;
}

.wgw-gift-select {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #A3AD62;
    color: #A3AD62;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.wgw-gift-card:hover .wgw-gift-select,
.wgw-gift-card.selected .wgw-gift-select {
    background: #A3AD62;
    color: white;
}

/* Payment Section */
.wgw-payment-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(80, 99, 74, 0.12);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.wgw-selected-gift {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    padding: 15px;
    background: rgba(163, 173, 98, 0.08);
    border-radius: 15px;
    font-size: 1rem;
}

.wgw-selected-label {
    font-weight: 500;
    color: #50634A;
    letter-spacing: 0.5px;
}

.wgw-selected-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #A3AD62;
    letter-spacing: 1px;
}

.wgw-amount-section {
    margin-bottom: 35px;
}

.wgw-amount-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #50634A;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.wgw-amount-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.wgw-currency {
    display: none;
}

.wgw-amount-input {
    width: 100%;
    padding: 18px 25px !important;
    border: 2px solid rgba(163, 173, 98, 0.3) !important;
    border-radius: 15px !important;
    font-size: 1.3rem !important;
    font-weight: 500;
    color: #50634A !important;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif !important;
    background: white !important;
    text-align: left !important;
    direction: ltr !important;
    box-sizing: border-box !important;
}

.wgw-amount-input::-webkit-outer-spin-button,
.wgw-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wgw-amount-input[type=number] {
    -moz-appearance: textfield;
}

.wgw-amount-input:focus {
    outline: none;
    border-color: #A3AD62 !important;
    box-shadow: 0 0 0 4px rgba(163, 173, 98, 0.1);
}

.wgw-preset-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.wgw-preset-amount {
    padding: 12px 20px;
    border: 2px solid rgba(163, 173, 98, 0.3);
    background: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #50634A;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.wgw-preset-amount:hover {
    border-color: #A3AD62;
    background: rgba(163, 173, 98, 0.08);
    transform: translateY(-2px);
}

.wgw-preset-amount.active {
    border-color: #A3AD62;
    background: #A3AD62;
    color: white;
}

.wgw-continue-btn {
    width: 100%;
    padding: 18px 40px;
    background: #E5A0A8;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(229, 160, 168, 0.35);
    font-family: 'Montserrat', sans-serif;
}

.wgw-continue-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(229, 160, 168, 0.45);
    background: #dc8a93;
}

.wgw-continue-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.wgw-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.wgw-continue-btn svg {
    transition: transform 0.3s ease;
}

.wgw-continue-btn:hover:not(:disabled) svg {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .wedding-gift-widget { padding: 40px 15px; }
    .wgw-header { margin-bottom: 40px; }
    .wgw-gifts-grid { grid-template-columns: 1fr; gap: 20px; }
    .wgw-payment-section { padding: 30px 20px; }
    .wgw-preset-amounts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .wgw-title { font-size: 2rem; }
    .wgw-subtitle { font-size: 0.9rem; }
    .wgw-gift-image { height: 160px; }
}
