/* Блок подарков в корзине */
.wgs-gift-box {
    border: 2px dashed #dc3e53;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    background: #f9f9ff;
}
.wgs-gift-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}
.wgs-gift-list {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.wgs-gift-list li {
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    width: 150px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.wgs-gift-list li img {
    max-width: 100px;
    margin-bottom: 8px;
}
.wgs-gift-list li p {
    font-size: 14px;
    margin: 0 0 8px;
}
.wgs-gift-list li .button {
    display: inline-block;
    background: #dc3e53;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.wgs-gift-list li .button:hover {
    background: #4a42c2;
}


/* Личный кабинет: блок подарков */
.wgs-account-box {
    border: 2px solid #dc3e53;
    padding: 20px;
    margin: 30px 0;
    border-radius: 12px;
    background: #fefefe;
}

.wgs-account-box h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.wgs-account-box p {
    margin: 8px 0;
    font-size: 15px;
}

.wgs-account-gift-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 0;
    padding: 0;
}

.wgs-account-gift-list li {
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    width: 140px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wgs-account-gift-list li img {
    max-width: 100px;
    margin-bottom: 6px;
}

.wgs-account-gift-list li p {
    font-size: 13px;
    margin: 0;
}



/* Контейнер формы */
#wgs-family-form {
    border: 2px solid #dc3e53;
    border-radius: 12px;
    padding: 20px;
    background: #fdfdff;
    max-width: 700px;
    margin: 30px 0;
}

/* Список членов семьи */
#wgs-family-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

/* Одна строка члена семьи */
.family-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Поля ввода */
.family-row input[type="text"],
.family-row input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex: 1 1 150px;
    min-width: 120px;
    max-height: 34px;
}

/* Кнопка "Добавить" */
#add-family-member {
    background: #dc3e53;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 10px;
}

#add-family-member:hover {
    background: #4a42c2;
}

/* Кнопка "Сохранить" */
#wgs-family-form button[type="submit"] {
    background: #00b894;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#wgs-family-form button[type="submit"]:hover {
    background: #00966e;
}

/* Сообщения (например, "Сохранено") */
#wgs-family-form .wgs-message {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.gift-block-title {
    display: flex;
    justify-content: space-between;
    /* background: #9a441e26; */
    padding: 10px;
    /* border-radius: 5px; */
    border-bottom: solid 1px #dc3e5373;
}


.wgs-product-gift-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.wgs-product-gift-list li {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wgs-product-gift-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.wgs-product-gift-list img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.wgs-product-gift-list p {
    color: #5A0F17;
    font-family: "Alegreya";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    margin: 0 0 5px 0;
    display: block;
}

/*.wgs-product-gift-list a {*/
/*    display: inline-block;*/
/*    padding: 10px 18px;*/
/*    background: #ff4d4d;*/
/*    color: #fff;*/
/*    border-radius: 8px;*/
/*    text-decoration: none;*/
/*    font-size: 14px;*/
/*    font-weight: 600;*/
/*    transition: background 0.2s ease;*/

/*}*/

.wgs-product-gift-list a:hover {
    background: #e63939;
}

.gift-note {
    font-size: 16px;
    background-color: #e2f2e3;
    padding: 20px;
    text-align: center;
    color: #663833;
}

.wgs-button-onoff {
    background: #00b894;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.wgs-button-onoff.off {
    background: #dc3e53;
}


.wgs-button-onoff:hover {
    color: white;
    opacity: 0.7;
}



/* Адаптив для мобильных */
@media (max-width: 600px) {
    .family-row {
        flex-direction: column;
        gap: 8px;
    }
    #add-family-member,
    #wgs-family-form button[type="submit"] {
        width: 100%;
        margin-right: 0;
    }

    /* Поля ввода */
    .family-row input[type="text"],
    .family-row input[type="date"] {
        padding: 6px 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        flex: 1 1 150px;
        min-width: 100%;
        max-height: 34px;
    }

    #add-family-member {
        margin-bottom: 10px
    }

    .family-row {
        background: #f0f0f0;
        padding: 10px;
    }

    .woocommerce-message {
        display: flex!important;
        flex-direction: column-reverse!important;
        gap: 20px!important;
        align-items: center!important;
    }
}
