body {
    background-color: #959e7b;
}

.gift-card-title {
    font-family: "Alexandria", sans-serif;
    margin-top: 150px;
    font-weight: 400;
    font-size: var(--font-size-h2);
    line-height: 100%;
    color: #FFFFFF;
    text-align: center;
    vertical-align: middle;
    padding-bottom: 15px;
}

.iti {
    width: 100% !important;
}

    .iti input {
        width: 100%;
    }

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    margin-top: -8px;
}

.giftPrice {
    text-align: left !important;
}

.gift-card-title1 {
    font-family: "Alexandria", sans-serif;
    color: white;
    font-weight: 300;
    font-size: var(--font-size-subtitle);
    line-height: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.et_pb_module_header {
    margin-top: 1rem;
    font-family: "Aleo", serif;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-weight: 200;
    font-size: var(--font-size-h4);
    letter-spacing: 0%;
    color: #ffffffd2;
    justify-content: center;
}

.modal-descr {
    font-family: "Alexandria", sans-serif;
    font-weight: 400;
    font-size: var(--font-size-body-small);
    line-height: 1.7;
    text-align: center;
    color: #666;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #959e7b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gift-price {
    font-family: "Alexandria", sans-serif;
    color: white;
    font-weight: 200;
    font-size: var(--font-size-h3);
    line-height: 100%;
}
.modal-descr p, .et_pb_blurb_description p {
    color: #ffffffd2;
}

.selectable-gift {
    position: relative;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s ease;
}

    .selectable-gift:hover {
        transform: scale(1.05);
    }

        .selectable-gift:hover::after {
            opacity: 1;
        }

.fixed-alert {
    position: fixed;
    top: 100px;
    width: 90%;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.3s ease;
    font-weight: 400;
    font-size: var(--font-size-card-subtitle);
    line-height: 1.5;
    letter-spacing: 0%;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-family: "Alexandria", sans-serif;
}

    .fixed-alert.hide {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(-20px);
    }

    .alert-success {
        background: linear-gradient(135deg, #28a745 0%, #218838 100%);
        border: none;
    }

    .alert-danger {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        border: none;
    }

a {
    font-weight: 400;
    color: #ffffff !important;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

a:hover {
    color: #EEF2E2 !important;
    text-decoration: underline;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e63946;
    cursor: pointer;
    border: none;
}

.gift-image {
    border-radius: 5px;
    object-fit: cover;
    max-height: 270px;
}

input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e63946;
    cursor: pointer;
    border: none;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

    input[type="range"]::-webkit-slider-runnable-track {
        height: 4px;
        border-radius: 2px;
        background: linear-gradient(to right, #e63946 0%, #e63946 calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%), #ddd calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%));
    }

.mb-3 {
    margin-bottom: 20px !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.col-md-6.d-flex {
    padding-left: 30px;
}

.separator {
    width: 130px;
    height: 1px;
    background-color: white;
    margin: 0px auto;
    text-align: center;
    margin-bottom: 40px;
}

.checkOffers {
    font-family: "Alexandria", sans-serif;
    font-weight: 300;
    font-size: var(--font-size-card-subtitle);
    line-height: 30px;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Modern Gift Card Styles */
.gift-page-wrapper {
    min-height: 100vh;
    padding-bottom: 80px;
}

.gift-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gift-cards-row {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 0;
    width: 80%;
    margin: 0 auto;
}

/* New Gift Card Item */
.gift-card-item {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: 12px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Visual Container - outer card background */
.gift-card-visual-container {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 4 / 4.5;
    background: #f5f5f5;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 4 / 4.5) {
    .gift-card-visual-container {
        min-height: 360px;
    }
}

.gift-card-visual-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Gift card display image */
.gift-card-display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gift-card-visual-container:hover .gift-card-display-image {
    transform: scale(1.05);
}

/* Gift card info section - below the visual */
.gift-card-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: nowrap;
    padding: 0 4px;
}

/* Smaller buy button for gift card items */
.gift-card-info .buy-button:hover {
    background-color: white;
    color: #474b3d;
    border-color: white;
}

/* Gift title */
.gift-title {
    font-family: "Alexandria", sans-serif;
    font-weight: 500;
    font-size: var(--font-size-body-xs);
    color: #2c3e50;
    margin: 0;
    text-align: left;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-title p {
    line-height: 1.1;
    margin: 0;
}

/* Button Styling */
.gift-card-select-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #959e7b 0%, #7a8361 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: "Alexandria", sans-serif;
    font-size: var(--font-size-body-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(149, 158, 123, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.gift-card-select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.gift-card-select-btn:hover::before {
    left: 100%;
}

.gift-card-select-btn svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.gift-card-select-btn span {
    position: relative;
    z-index: 1;
}

.gift-card-select-btn:hover {
    background: linear-gradient(135deg, #7a8361 0%, #646b52 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(149, 158, 123, 0.4);
}

.gift-card-select-btn:hover svg {
    transform: translateX(2px) scale(1.05);
}

.gift-card-select-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(149, 158, 123, 0.4);
}

.nav-link:hover {
    color: white !important;
}

.rght-section {
    padding: 30px;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
    font-weight: 600;
    font-size: var(--font-size-body-small);
}

.amount-text {
    text-align: left !important;
}

.form-readonly {
    margin-bottom: 0 !important;
}

.disable1 {
    margin-bottom: 0 !important;
}

.disable-value {
    align-items: center;
    display: flex;
}

.form-control:disabled, .form-control[readonly] {
    background-color: transparent;
    opacity: 1;
}

.button-container {
    font-family: "Alexandria", sans-serif;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.buy-button:active {
    transform: scale(0.98);
}

.amount {
    font-family: "Alexandria", sans-serif;
    font-weight: 100;
    font-size: var(--font-size-body);
    line-height: 30px;
    opacity: 0.8;
    text-align: center;
    color: white;
}

.minValue {
    text-align: left !important;
    margin-top: -15px;
}

.modal-dialog-centered-custom {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 58px);
}

.gift-section {
    margin-top: 30px;
}

.gift-title {
    font-family: "Alexandria", sans-serif;
    font-weight: 200;
    font-size: var(--font-size-card-subtitle);
    line-height: 53px;
    text-align: left;
    color: white;
}

.range-display {
    font-family: "Alexandria", sans-serif;
    font-weight: 200;
    font-size: var(--font-size-subtitle);
    margin-top: -20px;
    text-align: left;
    color: white;
}

.expandable-text__content,
.structured-component-text-block-subtitle,
.structured-component-list {
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-family: "Alexandria", sans-serif;
    font-weight: 100;
    font-size: var(--font-size-body);
    line-height: 30px;
    opacity: 0.8;
    text-align: center;
    color: white;
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: #eef2e2;
    border-radius: 5px;
    outline: none;
    transition: background 450ms ease-in;
}

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: #eef2e2;
        border-radius: 50%;
        cursor: pointer;
        border: none;
        margin-top: -7px;
    }

    input[type=range]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: #eef2e2;
        border-radius: 50%;
        cursor: pointer;
        border: none;
    }

    input[type=range]::-moz-range-track {
        background: transparent;
    }

/* Tablet Styles */
@media (max-width: 1100px) {
    .col-xl-4.col-lg-4.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 580px) {
    .col-xl-4.col-lg-4.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    /* Card entrance animation */
    .gift-card-item:nth-child(1) { animation-delay: 0.1s; }
    .gift-card-item:nth-child(2) { animation-delay: 0.2s; }
    .gift-card-item:nth-child(3) { animation-delay: 0.3s; }
    .gift-card-item:nth-child(4) { animation-delay: 0.4s; }
    .gift-card-item:nth-child(5) { animation-delay: 0.5s; }
    .gift-card-item:nth-child(6) { animation-delay: 0.6s; }
    .gift-card-item:nth-child(7) { animation-delay: 0.7s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet and smaller screens - Single column layout for better view */
@media (max-width: 768px) {
    /* Force single column layout */
    .gift-cards-row [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .gift-cards-row {
        padding: 0 30px;
    }
    
    .gift-card-item {
        margin-bottom: 40px;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gift-card-visual-container {
        aspect-ratio: 4 / 3.8;
    }
    
    @supports not (aspect-ratio: 4 / 3.8) {
        .gift-card-visual-container {
            min-height: 340px;
        }
    }
    
    .fixed-alert {
        margin-top: -20px !important;
        position: fixed;
        top: 80px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        opacity: 1;
        transition: opacity 0.5s ease;
        font-weight: 200;
        font-size: var(--font-size-card-subtitle);
        line-height: 28px;
        letter-spacing: 0%;
    }

    .modal-title {
        font-size: var(--font-size-card-subtitle) !important;
        margin-bottom: 0 !important;
        padding-right: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modal-header .btn-close {
        width: 32px !important;
        height: 32px !important;
        font-size: var(--font-size-h5) !important;
        flex-shrink: 0;
    }

    .modal-content {
        margin-top: 80px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        border-radius: 12px !important;
    }

    .modal-body {
        padding: 20px 15px !important;
    }

    .modal-header {
        padding: 18px 15px 15px !important;
        flex-wrap: nowrap;
    }
    
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .modal-responsive {
        padding-right: 0 !important;
        border-right: none !important;
        margin-bottom: 30px;
    }

    #giftModal .col-md-6.d-flex {
        padding-left: 30px !important
    }

    .col-md-6.d-flex {
        padding-left: 0 !important;
    }

    .form-control {
        padding: 10px 14px !important;
        font-size: var(--font-size-body-small) !important;
        margin-bottom: 15px !important;
    }

    .phone-input {
        padding-left: 52px !important;
    }

    .buy-button {
        width: 100%;
    }
    
    .form-label {
        font-size: var(--font-size-label) !important;
    }

    .purchaseBtn {
        width: 100% !important;
        margin-bottom: 8px;
    }
    
    .modal-descr {
        font-size: var(--font-size-body-xs) !important;
        padding: 15px !important;
    }
    
    .buy-button-container {
        margin-top: 20px !important;
        padding-top: 15px !important;
    }

    .gift-card-title {
        margin-top: 100px;
        font-size: var(--font-size-h3);
    }

    .gift-page-wrapper {
        padding-bottom: 40px;
    }

    .gift-cards-row {
        width: 100%;
    }
    .gift-cards-row {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .gift-price {
        font-size: var(--font-size-card-title);
    }

    .gift-card-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .gift-title {
        text-align: center;
    }

    .gift-card-select-btn {
        padding: 6px 10px;
        font-size: var(--font-size-label);
    }

    .gift-card-select-btn svg {
        width: 14px;
        height: 14px;
    }

    .checkOffers {
        font-size: var(--font-size-body);
        padding: 0 15px;
    }
}

/* Mobile - Compact single column with button under description */
@media (max-width: 576px) {
    .gift-cards-row {
        padding: 0 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .gift-card-item {
        margin-bottom: 20px;
    }
    
    .gift-card-visual-container {
        aspect-ratio: 4 / 3.5;
    }
    
    @supports not (aspect-ratio: 4 / 3.5) {
        .gift-card-visual-container {
            min-height: 280px;
        }
    }
    
    .gift-title {
        font-size: var(--font-size-body);
    }
    
    .gift-price {
        font-size: var(--font-size-h5);
    }
}
