body {
    background-color: #f3f3f3;
}

.wishlist-form form, .add-gift-form form, .wishlist-edit-form form {
    max-width: 580px;
    margin: 30px auto;
    background: white;
    text-align: left;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wishlist-form label, .add-gift-form label, .wishlist-edit-form label {
    color: #555;
    display:inline-block;
    margin: 25px 0 15px;
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.wishlist-form input, .wishlist-form select, .add-gift-form input, .add-gift-form textarea, .wishlist-edit-form input, .wishlist-edit-form select {
    display: block;
    padding: 10px 6px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #ddd;
    color: #555;
}

.wishlist-form input[type=submit], .add-gift-form input[type=submit], .wishlist-edit-form input[type=submit]{
    background: #333;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.wishlist-form input[type=submit]:hover, .add-gift-form input[type=submit]:hover, .wishlist-edit-form input[type=submit]:hover {
    background: #000;
}



h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

h1 {
    margin-top: 2%;
}

.restore-list-form {
    position: relative;
    max-width: 880px;
    margin: 150px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.restore-list-form form {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.restore-list-form label {
    color: #555;
    letter-spacing: 1px;
    font-weight: bold;
    margin: 0;
}

.restore-list-form input[type=email] {
    width: 60%;
    padding: 10px 6px;
    box-sizing: border-box;
    border: 2px solid #777777;
    color: #555;
}

.restore-list-form input[type=submit] {
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    width: auto;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.restore-list-form input[type=submit]:hover {
    background: #000;
}

@media (max-width: 768px) {
    .restore-list-form form {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .restore-list-form .search-bar {
        width: 100%;
        margin: 10px auto;
    }

    .restore-list-form input[type=submit] {
        width: 60%;
        max-width: 200px;
    }
}

.wishlist-data {
    display: flex;
    flex-direction: column;
    position: relative;
}

.wishlist-info-private, .wishlist-info-public {
    max-width: 300px;
    margin: 15px auto;
    text-align: center;
    font-weight: bold;
}

@media (max-width: 425px) {
    .wishlist-info-private, .wishlist-info-public {
        max-width: 110px;
    }
}


.wishlist-manage-buttons {
    display: flex;
    flex-direction: row;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.gift-element {
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 80%;
}

.edit-gift:hover {
    cursor: pointer;
}

.gift-name h3 {
    text-align: left;
}

.gift-info {

}

.gift-name a{
    color: #000;
    text-decoration: none;
}


.gift-description {
    width: 100%;
    color: #343434;
}

.gift-link {
    text-align: center;
}

.gift-link a {
    text-decoration: none;
    color: #000;
    border-radius: 20px;
}

.gift-link a:hover {
    color: orange;
}

.trash-col {
    text-align: right;
}

.empty-list {
    text-align: center;
}

.empty-list h1 {
    margin-top: 100px;
}

.empty-list img {
    width: 30%;
    margin: 50px auto;
}

.gift-element-buttons button {
    border: none;
    background: #d3d3d3;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 5px;
    transition: background-color 0.2s ease;
}

.gift-element-buttons button:hover {
    background: #c2c2c2;
}

.new-item-container {
    margin: 30px auto;
    text-align: center;
}

.new-item-container .search-bar {
    width: 50%;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid black;
}


.new-item-container button {
    border: none;
    background: none;
}

.new-item-container .bi-search {
    font-size: 20px;
}

.new-item-container .or-text {
    margin: 0 15px 0 10px;
    font-weight: bold;
}

.new-item-container .add-button {
    border: 2px solid black;
    padding: 10px;
    border-radius: 20px;
    font-weight: bold;
    background: #303030;
    color: #fff;
    transition: background-color 0.2s ease;
}
.new-item-container .add-button:hover {
    background: #000;
}

@media (max-width: 1440px) {
    .gift-element {
        width: 100%;
    }

    .empty-list img {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .gift-img {
        width: 75%;
    }

    .gift-name h3 {
        margin-top: 10px;
    }

    .gift-description {
        width: 100%;
    }

    .gift-link {
        float: left;
        margin-top: 10px;
    }

    .empty-list img {
        width: 75%;
    }

    .wishlist-info-private {
        float: left;
        margin: 15px 0;
    }

    .new-item-container input[type=text] {
        width: 80%;
    }

    .new-item-container .or-text {
        display: block;
        margin: 10px auto;
    }
}

@media (min-width: 1445px) {
    .wishlist-manage-buttons {
        right: 10%;
    }
}

.reserved {
    .gift-container {
        opacity: 0.5;
    }
    .gift-element-buttons button:first-of-type{
        background: #303030;
        color: #fff;
    }
}

.bought {
    .gift-container {
        opacity: 0.5;
    }
    .gift-element-buttons button:last-of-type{
        background: #303030;
        color: #fff;
    }
}

.add-gift-form {
    position: fixed;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.5);
}

.email-help {
    margin-top: 5px;
    display: block;
    font-size: 10px;
}

.template-date-case {
    display: flex;
    gap: 10px;
    width: 100%;
}

.template-date-case input[type=number] {
    width: 15%;
}

@media (max-width: 767px) {
    .template-date-case input[type=number] {
        width: 35%;
    }
}

.wishlist-metadata {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 1445px) {
    .wishlist-metadata {
        left: 10%;
    }
}

.wishlist-metadata h6 {
    text-align: left;
}

.attributeName {
    text-transform: capitalize;
}

.wishlist-edit-form {
    position: fixed;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.5);
    overflow: scroll;
}

.search-result {
    position: fixed;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.5);
}

.search-result-container {
    position: relative;
    max-width: 800px;
    max-height: 80vh;
    margin: 100px auto;
    background: white;
    text-align: left;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow-y: scroll;
}

.search-result-container .search-bar {
    width: 90%;
    margin: 30px auto;
}

.found-gift {
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.found-gift:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}

.wishlist-share {
    position: fixed;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.5);
}

.wishlist-share-container {
    position: relative;
    max-width: 800px;
    max-height: 80vh;
    margin: 100px auto;
    background: white;
    text-align: left;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    top: 15%;
}

.wishlist-share-container h6 {
    margin-top: 10px;
}


.link-button {
    display: flex;
    align-items: center;
    width: 75%;
    margin: 30px auto 0 auto;
}

.link-button input {
    flex-grow: 1;
    padding: 10px 12px;
    box-sizing: border-box;
    background: none;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #555;
    font-size: 16px;
    transition: color 0.1s ease;
}

.link-button input:hover {
    border-color: #000;
    color: #000;
}

.link-button .bi-copy {
    font-size: 20px;
    color: #555;
    transition: color 0.2s ease;
}

.link-button .bi-copy:hover {
    color: #000;
}

.wishlist-share-close {
    position: absolute;
    top: 5px;
    right: 5px;
}

@media (max-width: 767px) {
    .link-button {
        width: 100%;
    }
}

.error {
    color: red;
    font-size: 10px;
    margin: 0;
}

.success-message {
    margin-top: 10px;
    color: green;
}

.popup-message {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4caf50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    max-width: 400px;
    width: 100%;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.privacy-policy h2 {
    color: #0056b3;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.privacy-policy p {
    margin-bottom: 15px;
}

.privacy-policy a {
    color: #007bff;
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

.privacy-policy ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.privacy-policy ul ul {
    list-style-type: circle;
    margin-top: 5px;
    margin-bottom: 5px;
}

.privacy-policy li {
    margin-bottom: 5px;
}

.privacy-policy strong {
    font-weight: bold;
    color: #000;
}

.privacy-policy em {
    font-style: italic;
    color: #555;
}

.privacy-policy a[href^="mailto:"] {
    word-break: break-all;
}

.privacy-policy-checkbox-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.privacy-policy-checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-policy-checkbox-container label {
    margin: 0;
    font-size: 0.7em;
    color: #555;
    line-height: 1.2;
}

.privacy-policy-checkbox-container a {
    color: #007bff;
    text-decoration: none;
}

.privacy-policy-checkbox-container a:hover {
    text-decoration: underline;
}

.wishlist-form input[type=submit]:disabled {
    background: #d3d3d3;
}

.gift-wishlist-article {
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gift-wishlist-article h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: bold;
}

.gift-wishlist-article h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.6em;
    text-align: left;
}

.gift-wishlist-article hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Akapity */
.gift-wishlist-article p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.gift-wishlist-article strong {
    color: #333;
    font-weight: bold;
}

.gift-wishlist-article ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.gift-wishlist-article ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .gift-wishlist-article {
        margin: 15px auto;
        padding: 25px;
    }

    .gift-wishlist-article h2 {
        font-size: 1.8em;
    }

    .gift-wishlist-article h3 {
        font-size: 1.4em;
    }

    .gift-wishlist-article p,
    .gift-wishlist-article ul li {
        font-size: 1em;
    }
}