.container-pesonalized-gift {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.egift-product-preview {
    flex: 1;
    min-width: 500px;
    position: relative;
}

.egift-preview-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.egift-preview-container img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.egift-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.egift-customization-toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* margin-top: 20px; */
}

.egift-tool-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 120px;
}

.egift-tool-button:hover {
    border-color: #ed3239;
    transform: translateY(-2px);
}

.egift-tool-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #555;
}

.egift-tool-button:hover .egift-tool-icon {
    color: #ed3239;
}

.egift-tool-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.egift-product-info {
    flex: 1;
    min-width: 400px;
}

.egift-product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #222;
}

.egift-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.egift-stars {
    color: #FFB900;
    font-size: 20px;
    margin-right: 8px;
}

.egift-rating-score {
    font-weight: 600;
    font-size: 16px;
}

.egift-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #222;
}

.egift-color-selector {
    margin-bottom: 24px;
}

.egift-color-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.egift-color-options {
    display: flex;
    gap: 10px;
}

.egift-color-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.egift-color-option.selected {
    border: 2px solid #ed3239;
}

.egift-shipping-info {
    /* background-color: #f9f9f9; */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 24px;
}

.egift-shipping-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.egift-shipping-row:last-child {
    margin-bottom: 0;
}

.egift-shipping-icon {
    width: 24px;
    margin-right: 12px;
    color: #555;
}

.egift-shipping-text {
    font-size: 14px;
}

.egift-shipping-highlight {
    font-weight: 600;
}

.egift-cta-button {
    background-color: #ed3239;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-align: center;
}

.egift-cta-button:hover {
    background-color: #d72128;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 50, 57, 0.2);
}

.egift-made-to-order {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-top: 16px;
}

.egift-made-to-order svg {
    margin-right: 8px;
}

.egift-nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.egift-nav-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    margin: 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
}

.egift-nav-thumb.active {
    border-color: #ed3239;
    border-width: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .egift-product-preview,
    .egift-product-info {
        min-width: 100%;
    }

    .egift-preview-container {
        height: 350px;
    }
}

.egift-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.egift-modal {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalAppear 0.3s ease-out;
    position: relative;
    z-index: 99999;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.egift-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.egift-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.egift-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.egift-modal-close:hover {
    color: #ed3239;
    transform: scale(1.1);
}

.egift-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.egift-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.egift-modal-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.egift-modal-button-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: none;
}

.egift-modal-button-secondary:hover {
    background-color: #e1e1e1;
}

.egift-modal-button-primary {
    background-color: #ed3239;
    color: white;
    border: none;
}

.egift-modal-button-primary:hover {
    background-color: #d72128;
}

/* Upload modal specific styles */
.egift-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 20px;
}

.egift-upload-area:hover {
    border-color: #ed3239;
    background-color: #fff9f9;
}

.egift-upload-icon {
    color: #ed3239;
    font-size: 48px;
    margin-bottom: 15px;
}

.egift-upload-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.egift-upload-note {
    font-size: 14px;
    color: #777;
}

.egift-file-preview {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.egift-file-preview-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.egift-file-name {
    flex: 1;
    font-size: 14px;
}

.egift-file-delete {
    color: #ed3239;
    background: none;
    border: none;
    cursor: pointer;
}

/* Pattern selection modal specific styles */
.egift-pattern-categories {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    overflow-x: auto;
}

.egift-pattern-category {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.egift-pattern-category.active {
    background-color: #ed3239;
    color: white;
}

.egift-pattern-category:not(.active) {
    background-color: #f1f1f1;
    color: #333;
}

.egift-pattern-category:not(.active):hover {
    background-color: #e1e1e1;
}

.egift-patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.egift-pattern-item {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.egift-pattern-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.egift-pattern-item.selected {
    border-color: #ed3239;
}

.egift-pattern-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egift-legal-note {
    font-size: 12px;
    color: #777;
    margin-top: 20px;
    line-height: 1.5;
}

.personalized-card-wrap{
        padding: 15px;
    background-color: white;
    border-radius: 10px;

}
