/* HSS Widget Styles - Matching Screenshots */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

.hss-widget {
    font-family: 'DM Sans', sans-serif;
    max-width: 440px;
    margin: 0 auto;
    background: #f8f7f4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* Header */
.hss-header {
    background: #1a1a1a;
    padding: 28px 28px 24px;
}
.hss-header h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}
.hss-header p {
    color: #aaa;
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Services List */
.hss-services-list {
    background: #fff;
}

.hss-service-item {
    border-bottom: 1px solid #eeece8;
}
.hss-service-item:last-child {
    border-bottom: none;
}

.hss-service-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.hss-service-header:hover {
    background: #faf9f7;
}

/* Custom Checkbox */
.hss-checkbox-label {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}
.hss-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.hss-custom-check {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    transition: all 0.15s;
    position: relative;
}
.hss-checkbox-label input:checked ~ .hss-custom-check {
    background: #c9a84c;
    border-color: #c9a84c;
}
.hss-checkbox-label input:checked ~ .hss-custom-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(40deg);
}

.hss-service-info {
    flex: 1;
    min-width: 0;
}
.hss-service-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.3;
}
.hss-service-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.hss-service-price {
    text-align: right;
    flex-shrink: 0;
}
.hss-from {
    display: block;
    font-size: 9px;
    letter-spacing: 1px;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
}
.hss-price-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Options (Sqft + Removal) */
.hss-service-options {
    padding: 0 20px 16px 56px;
    background: #faf9f6;
    border-top: 1px solid #eeece8;
    animation: hss-fade-in 0.2s ease;
}

@keyframes hss-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hss-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #aaa;
    text-transform: uppercase;
    margin: 14px 0 8px;
}

/* Sqft Pills */
.hss-sqft-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.hss-pill {
    padding: 11px 22px;
    border: 1.5px solid #333;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #222;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.hss-pill:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    background: #fffbf2;
}
.hss-pill.active {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #fff;
    font-weight: 600;
}

/* Toggle */
.hss-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.hss-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.hss-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.hss-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 50px;
    transition: 0.2s;
    cursor: pointer;
}
.hss-toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hss-toggle input:checked ~ .hss-toggle-slider {
    background: #c9a84c;
}
.hss-toggle input:checked ~ .hss-toggle-slider::before {
    transform: translateX(20px);
}
.hss-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Removal Buttons */
.hss-removal-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    animation: hss-fade-in 0.15s ease;
}
.hss-removal-btn {
    flex: 1;
    min-width: 130px;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    color: #222;
}
.hss-removal-btn:hover {
    border-color: #c9a84c;
    background: #fffbf2;
}
.hss-removal-btn.active {
    border-color: #c9a84c;
    background: #fffbf0;
}
.hss-removal-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
}
.hss-removal-desc {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}
.hss-removal-btn.active .hss-removal-name,
.hss-removal-btn.active .hss-removal-desc {
    color: inherit;
}

/* Summary */
.hss-summary {
    background: #fff;
    border-top: 1px solid #eeece8;
    padding: 16px 20px;
    min-height: 50px;
}
.hss-summary-empty {
    text-align: center;
    color: #bbb;
    font-size: 14px;
    padding: 6px 0;
    font-style: italic;
}
.hss-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0ede8;
}
.hss-summary-item:last-child { border-bottom: none; }
.hss-summary-item-name { color: #333; font-weight: 500; }
.hss-summary-item-detail { font-size: 11px; color: #c9a84c; margin-top: 2px; }
.hss-summary-item-price { font-weight: 700; color: #1a1a1a; flex-shrink: 0; margin-left: 10px; }

/* Totals */
.hss-totals {
    background: #fff;
    padding: 12px 20px 16px;
    border-top: 1px solid #eeece8;
}
.hss-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}
.hss-grand-total {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    margin-top: 6px;
}
.hss-total-amount {
    color: #c9a84c !important;
    font-size: 20px;
}
.hss-tax-note {
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}

/* Footer */
.hss-footer {
    padding: 16px 20px 20px;
    background: #f8f7f4;
}
.hss-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #c9a84c;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.hss-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #fff;
}
.hss-add-to-cart:not(:disabled):hover {
    background: #b8943f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.hss-call {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}
.hss-call a {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
}
.hss-call a:hover { text-decoration: underline; }

/* Modal Overlay */
.hss-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: hss-fade-in 0.2s ease;
}
.hss-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.hss-modal-header {
    background: #1a1a1a;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}
.hss-modal-header h3 {
    color: #fff;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}
.hss-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
.hss-modal-close:hover { color: #fff; }
.hss-modal-body {
    padding: 24px;
}
.hss-form-group {
    margin-bottom: 16px;
}
.hss-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hss-req { color: #e05; }
.hss-form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.hss-form-group input:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.hss-modal-summary {
    background: #faf9f6;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 13px;
}
.hss-modal-summary-title {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px;
}
.hss-modal-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: #444;
}
.hss-modal-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0;
    margin-top: 6px;
    border-top: 1px solid #eee;
    font-weight: 700;
    color: #1a1a1a;
}
.hss-modal-total-row span:last-child { color: #c9a84c; }
.hss-form-error {
    background: #fff0f0;
    color: #c00;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}
.hss-submit-btn {
    width: 100%;
    padding: 14px;
    background: #c9a84c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}
.hss-submit-btn:hover {
    background: #b8943f;
}
.hss-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Overlay */
.hss-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hss-fade-in 0.2s ease;
}
.hss-success-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.hss-success-icon {
    width: 60px;
    height: 60px;
    background: #c9a84c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 16px;
}
.hss-success-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.hss-success-box p {
    color: #888;
    font-size: 14px;
    margin: 0 0 24px;
}
.hss-success-close {
    padding: 12px 32px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.hss-success-close:hover { background: #333; }
