/* ===================================================
   Romanovas Dental – Additional Functions
   Frontend styles
   =================================================== */

/* ==============================================
   Configurator footer – tighten PC plugin spacing
   ============================================== */
.mkl_pc .mkl_pc_container .form.form-cart {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.mkl_pc .mkl_pc_container .price-container {
    padding-bottom: 8px !important;
}

/* Per-choice price badge */
.rd-choice-new-price {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
}


/* Cart / order item meta price badge */
.rd-new-price-meta {
    font-size: 0.85em;
    opacity: 0.8;
    color: #555;
}

/* ==============================================
   Shared button style
   ============================================== */
.rd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9em;
    cursor: pointer;
    border-radius: 3px;
}

/* ==============================================
   Save Design – expandable section
   ============================================== */

.rd-save-section {
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
}

/* Toggle header button */
.rd-save-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.92em;
    font-weight: 600;
    color: inherit;
    gap: 8px;
}

.rd-save-toggle:hover .rd-save-toggle-label {
    text-decoration: underline;
}

.rd-toggle-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.rd-save-section.is-open .rd-toggle-chevron {
    transform: rotate(180deg);
}

/* Collapsible body */
.rd-save-body {
    padding-bottom: 6px;
}

.rd-save-login {
    font-size: 0.9em;
    color: #555;
    padding: 6px 0 4px;
}

.rd-save-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.rd-design-name-input {
    flex: 1;
    min-width: 160px;
    padding: 7px 10px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.rd-save-btn {
    white-space: nowrap;
}

.rd-save-feedback {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    min-height: 1.2em;
}

.rd-feedback--success { color: #1a7a40; }
.rd-feedback--error   { color: #b22222; }

.rd-designs-list-wrap { margin-top: 12px; }

.rd-loading {
    color: #888;
    font-size: 0.85em;
}

.rd-no-designs {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

.rd-designs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rd-design-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88em;
    flex-wrap: wrap;
}

.rd-design-item-name { flex: 1; font-weight: 500; }

.rd-design-item-date { color: #888; white-space: nowrap; }

.rd-design-item-actions { display: flex; gap: 8px; }

.rd-design-item-actions .button-link {
    font-size: 0.85em;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #0073aa;
}

.rd-danger { color: #b22222 !important; }

.rd-account-link {
    display: block;
    margin-top: 10px;
    font-size: 0.85em;
    color: #0073aa;
    text-decoration: none;
}

.rd-account-link:hover { text-decoration: underline; }

/* ==============================================
   PDF Export button
   ============================================== */
.rd-pdf-wrap { margin-top: 6px; }

.rd-pdf-btn {
    background: #f7f7f7;
    border: 1px solid #ccc;
    color: #333;
}

.rd-pdf-btn:hover { background: #eee; }
.rd-pdf-btn svg   { flex-shrink: 0; }

/* ==============================================
   My Account – Saved Designs page
   ============================================== */
.rd-account-saved-designs h2 { margin-bottom: 20px; }

.rd-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rd-btn-load { font-size: 0.85em; }

.rd-btn-delete {
    font-size: 0.85em;
    background: transparent;
    border-color: #ccc;
    color: #b22222;
}

.rd-btn-delete:hover {
    border-color: #b22222;
    color: #fff;
    background: #b22222;
}
