/* =========================================================
   SP Pickup – Checkout Styles
   ========================================================= */

/* Hide by default; JS shows when SP method is selected */
.sp-pickup-row {
    display: none;
}

/* ── Container ─────────────────────────────────────────── */
#sp-pickup-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Selected point card ───────────────────────────────── */
#sp-pickup-selected {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f6fbfa;
    border: 1px solid #c8deda;
    border-radius: 6px;
    padding: 12px 14px;
}

.sp-pickup-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.4;
}

.sp-pickup-info strong {
    font-size: 14px;
    color: #1a3a36;
}

.sp-pickup-info span {
    font-size: 12px;
    color: #5a7873;
}

/* ── Kind icon ─────────────────────────────────────────── */
.sp-pickup-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c8deda;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.sp-pickup-icon.sp-kind-office {
    background-color: #d4eaff;
    /* SVG: building/post-office */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155fa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='14'/%3E%3Cpath d='M3 7l9-4 9 4'/%3E%3Crect x='9' y='13' width='6' height='8'/%3E%3C/svg%3E");
}

.sp-pickup-icon.sp-kind-bbox {
    background-color: #fff3cd;
    /* SVG: box/package */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856404' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

.sp-pickup-icon.sp-kind-point {
    background-color: #e8f5e9;
    /* SVG: map pin */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* ── Button ────────────────────────────────────────────── */
.sp-pickup-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: #cc0000; /* Slovenská pošta red */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
}

.sp-pickup-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.sp-pickup-btn:hover {
    background: #a80000;
}

.sp-pickup-btn:focus {
    outline: 2px solid #cc0000;
    outline-offset: 2px;
}

/* ── Thank-you page ────────────────────────────────────── */
.sp-pickup-thankyou {
    margin: 2em 0;
}

.sp-pickup-thankyou h2 {
    font-size: 1.1em;
    margin-bottom: .6em;
}

.sp-pickup-thankyou .woocommerce-table th {
    width: 140px;
    font-weight: 600;
}
