:root {
    --pdm-accent: #b94d3f;
    --pdm-neutral-bg: #f8f8f8;
    --pdm-border: #e1e1e1;
    --pdm-text: #222;
    --pdm-muted: #888;
    --pdm-btn-bg: #b94d3f;
    --pdm-btn-text: #fff;
}
.pdm-togglebar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--pdm-border);
    /* border-radius: 14px; */
    overflow: hidden;
    font-family: inherit;
    height: 46px;
    max-width: 430px;
    margin: 18px 0;
}
.pdm-toggle-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.04rem;
    font-weight: 600;
    padding: 0 22px;
    height: 100%;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.pdm-toggle-btn.active {
    background: #b94d3f;
    color: #fff;
}
.pdm-dropdown {
    display: flex;
    align-items: center;
    padding: 0 14px;
    min-width: 160px;
    flex: 1;
    cursor: pointer;
    border-left: 1px solid #e1e1e1;
    height: 100%;
    outline: none;
    position: relative;
    user-select: none;
}
.pdm-dropdown-label {
    color: #b94d3f;
    font-size: 0.93rem;
    font-weight: 600;
    margin-right: 6px;
    white-space: nowrap;
}
.pdm-dropdown-value {
    color: #222;
    font-size: 0.97rem;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}
.pdm-dropdown-arrow {
    color: #888;
    font-size: 1.0rem;
    margin-left: 4px;
}
#pdm-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(40,40,40,0.16);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pdm-fade-in 0.21s;
}
@keyframes pdm-fade-in { from { opacity: 0; } to { opacity: 1; } }
#pdm-modal-content {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 7px 32px rgba(0,0,0,0.11);
    width: 96vw; max-width: 420px;
    max-height: 94vh;
    overflow-y: auto;
    padding: 28px 25px 22px 25px;
    position: relative;
    animation: pdm-modal-in 0.24s cubic-bezier(.29,1.01,.48,.99);
}
@keyframes pdm-modal-in {
    from { transform: translateY(50px) scale(.96); opacity: 0;}
    to   { transform: translateY(0) scale(1); opacity: 1;}
}
.pdm-modal-header {
    font-size: 1.30rem;
    font-weight: 700;
    color: var(--pdm-text);
    text-align: center;
    margin-bottom: 15px;
}
.pdm-modal-close, .pdm-modal-back {
    position: absolute;
    top: 18px;
    font-size: 1.5rem;
    color: var(--pdm-muted);
    cursor: pointer;
    z-index: 2;
    background: #f8f8f8;
    border: none;
    border-radius: 8px;
    padding: 2px 10px;
    transition: background 0.15s;
}
.pdm-modal-close { right: 16px; }
.pdm-modal-close:hover, .pdm-modal-back:hover { background: #ececec; }
.pdm-modal-back { left: 16px; }

.pdm-modal-btn-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 35px 0 0 0;
}
.pdm-modal-btn-opt {
    background: #f8f8f8;
    border: 2px solid #e1e1e1;
    border-radius: 38px;
    padding: 16px 22px;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: border 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.99rem;
}
.pdm-modal-btn-opt:hover {
    border: 2px solid var(--pdm-accent);
    background: #f4eceb;
}
.pdm-modal-btn-opt strong {
    display: block;
    font-size: 1.01rem;
    color: var(--pdm-text);
    font-weight: 600;
}
.pdm-modal-btn-opt span {
    color: var(--pdm-muted);
    font-size: 0.98rem;
}

.pdm-pickup-list {
    margin-top: 18px;
}
.pdm-pickup-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border-left: 5px solid var(--pdm-accent);
    margin-bottom: 9px;
    padding: 8px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: box-shadow 0.16s;
}
.pdm-pickup-item.selected { box-shadow: 0 4px 14px rgba(185,77,63,0.13);}
.pdm-pickup-img {
    width: 34px; height: 34px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}
.pdm-pickup-details {
    flex: 1;
}
.pdm-pickup-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--pdm-accent);
    margin-bottom: 1px;
}
.pdm-pickup-address {
    color: #222;
    font-size: 0.94rem;
    margin-top: 2px;
}

.pdm-modal-delivery-form {
    width: 100%;
    margin-top: 6px;
}
.pdm-modal-delivery-form input,
.pdm-modal-delivery-form select {
    width: 100%;
    background: var(--pdm-neutral-bg);
    border: 1.5px solid #e1e1e1;
    border-radius: 22px;
    font-size: 0.97rem;
    padding: 12px 18px;
    margin-bottom: 3px;
    color: var(--pdm-text);
    outline: none;
    transition: box-shadow 0.16s, border-color 0.18s;
    box-sizing: border-box;
}
.pdm-modal-delivery-form input:focus,
.pdm-modal-delivery-form select:focus {
    border-color: #b94d3f;
    box-shadow: 0 0 0 2px #f4eceb;
}
.pdm-modal-delivery-form button {
    width: 100%;
    background: var(--pdm-accent);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 12px 0;
    margin-top: 9px;
    cursor: pointer;
    transition: background 0.14s;
    box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}
.pdm-modal-delivery-form button:disabled {
    background: #ddd;
    color: #bbb;
    cursor: not-allowed;
}
.pdm-modal-warning {
    color: var(--pdm-accent);
    background: none;
    border-radius: 0;
    text-align: center;
    margin: 7px 0;
    font-size: 0.95rem;
    font-weight: 500;
}
.pdm-error {
    color: #b94d3f;
    font-size: 0.89rem;
    padding: 3px 0 5px 2px;
    min-height: 15px;
    font-weight: 500;
}
.pdm-modal-note {
    font-size: 0.93rem;
    color: #888;
    margin: 6px 0 12px 0;
    text-align: left;
}
.pdm-link {
    color: #b94d3f;
    text-decoration: underline;
    transition: color 0.18s;
    font-weight: 600;
}
.pdm-link:hover {
    color: #222;
}
#pdm-shop-now-btn {
    margin-top: 8px;
    background: #b94d3f;
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 1.03rem;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.14s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    width: 100%;
}
#pdm-shop-now-btn:hover {
    background: #a13c2c;
}
#pdm-alert-container {
    position: fixed;
    left: 50%;
    bottom: 42px;
    z-index: 99999;
    transform: translateX(-50%);
    pointer-events: none;
}
.pdm-alert {
    background: var(--pdm-accent);
    color: #fff;
    border-radius: 34px;
    font-size: 0.96rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    display: flex;
    align-items: center;
    padding: 10px 22px;
    gap: 12px;
    min-width: 160px;
    max-width: 370px;
    position: relative;
    pointer-events: auto;
}
.pdm-alert-progress {
    position: absolute;
    left: 0; bottom: 0;
    height: 6px;
    width: 100%;
    background: #e1e1e1;
    border-radius: 0 0 34px 34px;
    transition: width 2.9s linear;
    z-index: 1;
}
@media (max-width: 600px) {
    .pdm-togglebar { height: 38px; max-width: 98vw;}
    .pdm-toggle-btn { font-size: .93rem; padding: 0 10px; }
    .pdm-dropdown-label, .pdm-dropdown-value { font-size: .82rem; }
    #pdm-modal-content { border-radius: 18px; padding: 9px 4vw 9px 4vw; min-width: 0;}
    .pdm-modal-header { font-size: 1rem; }
    .pdm-modal-btn-opt { padding: 12px 10px; min-width: 80px; font-size: 0.93rem;}
    .pdm-modal-note { font-size: .87rem;}
    .pdm-error { font-size: .82rem;}
}