body.dp-popup-open { overflow: hidden; }

.dp-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(28, 27, 18, .42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.dp-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dp-popup {
    box-sizing: border-box;
    position: relative;
    width: 550px;
    height: 560px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: hidden;
    padding: 17px 29px 20px;
    border: 1px solid #3f3a17;
    background: #e4e0d0;
    color: #47431f;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.dp-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 33px;
    line-height: 32px;
    font-weight: 300;
    cursor: pointer;
}

.dp-popup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 700;
}

.dp-popup-logo-text {
    display: block;
}

.dp-popup-logo-image {
    display: block !important;
    float: none !important;
    width: 80px !important;
    height: auto;
    max-width: 190px;
    max-height: 28px;
    margin: 0 auto !important;
    object-fit: contain;
}

h2.dp-popup-title {
    margin: 0 0 6px;
    font-size: 32px !important;
	font-weight: 500 !important;
    line-height: 120% !important;
    color: #3f3a17 !important;
}

.dp-popup-subtitle {
    font-weight: 400 !important;
    margin: 0 auto 13px;
    font-size: 16px;
	text-align: center;
    line-height: 125%;
	max-width: 250px;
}

.dp-popup-switch {
    display: inline-flex;
    margin: 10px 0 30px;
    padding: 0;
    border-radius: 999px;
    background: #d9d3bf;
    overflow: hidden;
}

.dp-popup-switch-btn {
    min-width: 128px;
    padding: 7px 15px 8px;
    border: 0;
    border-radius: 999px;
    background: #d7d1bd;
    color: #3f3a17;
    font-size: 18px;
	font-weight: 500 !important;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.dp-popup-switch-btn.is-active {
    background: #3f3a17;
    color: #e4e0d0;
}

.dp-popup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 21px;
}

.dp-popup-card {
    box-sizing: border-box;
    display: grid !important;
    grid-template-rows: 116px 18px 24px;
    align-items: center;
    justify-items: stretch;
    min-width: 0;
    height: 182px;
    padding: 9px 0px 10px;
    border: 0.46px solid #b2a981;
	border-radius: 0 !important;
    background: #e4e0d0;
    color: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.dp-popup-card:hover,
.dp-popup-card.is-selected {
    border: 0.46px solid #b2a981;
	border-radius: 0 !important;
    background: #d7d1bd;
}

.dp-popup-card-image-wrap {
    box-sizing: border-box;
    display: flex !important;
    float: none !important;
    clear: both;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 116px;
    margin: 0;
    overflow: hidden;
}

.dp-popup .dp-popup-card-image {
    display: block !important;
    float: none !important;
    clear: both;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 108px !important;
    margin: 0 auto !important;
    object-fit: contain;
}

.dp-popup-card-caption,
.dp-popup-card-price {
	font-family: "Diainter" !important;
    box-sizing: border-box;
    display: block !important;
    float: none !important;
    clear: both;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    white-space: nowrap;
}

.dp-popup-card-caption {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.15;
}

.dp-popup-card-price {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 400;
}

.dp-popup-cta {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 18px;
	margin-top: 30px;
    border: 0;
    border-radius: 999px;
    background: #3f3a17;
    color: #e4e0d0;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.dp-popup-cta:hover {
	border: 1px solid #3f3a17 !important;
	background: #e4e0d0;
}

.dp-popup-cta:disabled { opacity: .65; cursor: wait; }

.dp-popup-dismiss {
    margin: 10px 0 0;
    padding: 2px 8px;
    border: 0;
    background: transparent;
    color: #585548;
    font-size: 14px;
	font-weight: 400 !important;
    cursor: pointer;
}

.dp-popup-message {
    min-height: 16px;
    margin-top: 3px;
    font-size: 12px;
}
.dp-popup-message.is-error { color: #8a1f11; }

/*
@media (max-width: 480px), (max-height: 620px) {
    .dp-popup-overlay { padding: 8px; align-items: center; }
    .dp-popup {
        width: min(550px, calc(100vw - 16px));
        height: auto;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        padding: 15px 16px 17px;
    }
    .dp-popup-logo { margin-bottom: 14px; }
    .dp-popup-title { font-size: clamp(23px, 6vw, 30px); }
    .dp-popup-subtitle { margin: 0 10px 10px; min-height: 0; font-size: 14px; }
    .dp-popup-switch { margin-bottom: 18px; }
    .dp-popup-switch-btn { min-width: 0; font-size: 16px; padding: 8px 14px; }
    .dp-popup-cards { gap: 6px; margin-bottom: 15px; }
    .dp-popup-card { height: 182px; padding: 6px 4px 8px; grid-template-rows: 116px 17px 22px; }
    .dp-popup-card-image-wrap { height: 116px; overflow: hidden; }
    .dp-popup-card-image {
        width: auto;
        height: 108px;
        max-width: none !important;
        max-height: none !important;
    }
    .dp-popup-card-price { font-size: 13px; }
    .dp-popup-cta { font-size: 14px; }
}
*/
@media (max-width: 520px) {
	h2.dp-popup-title {
		font-size: 28px !important;
		max-width: 210px !important;
		margin: 0 auto 10px !important;
	}
	.dp-popup-switch-btn {
		font-size: 16px !important;
	}

    .dp-popup .dp-popup-card-image {
        width: auto !important;
        height: 108px !important;
        max-width: none !important;
        max-height: none !important;
    }
	.dp-popup-cta {
		margin-top: 15px;
	}

	.dp-popup-dismiss {
		margin-top: 8px;
		margin-bottom: 8px;
	}

	.dp-popup-message:empty {
		display: none;
	}
}

@media (max-width: 430px) {

    .dp-popup {
        height: auto;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        padding: 15px 16px 25px;
    }
	.dp-popup-switch-btn {
		font-size: 14px !important;
	}

    .dp-popup-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .dp-popup-card {
        width: 100%;
        height: 182px;
        padding: 9px 0 10px;
        grid-template-rows: 116px 18px 24px;
    }

    .dp-popup-card-image-wrap {
        width: 100%;
        height: 116px;
        overflow: hidden;
    }

    .dp-popup .dp-popup-card-image {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 108px !important;
    }

    .dp-popup-card-price {
        font-size: 15px;
    }

    .dp-popup-cta {
        margin-top: 15px;
		line-height: 18px;
    }

    .dp-popup-dismiss {
        margin-bottom: 10px;
    }
}

@media (max-width: 359px) {

    .dp-popup-switch {
        flex-direction: column;
        border-radius: 10px;
    }

    .dp-popup-switch-btn {
        min-width: 150px;
        border-radius: 0;
    }

    .dp-popup-switch-btn:first-child {
        border-radius: 10px 10px 0 0;
    }

    .dp-popup-switch-btn:last-child {
        border-radius: 0 0 10px 10px;
    }
}