/* Irie Teller Option Table Widget Styles */

.irie-teller-option-table-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.irie-teller-option-table {
    width: 100%;
    max-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border: 2px solid #c84b31;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(200, 75, 49, 0.08);
    font-family: inherit;
    margin: 0 auto;
}

.irie-teller-option-table thead tr {
    background-color: #a01212;
}

.irie-teller-option-table thead tr th:first-child {
    border-top-left-radius: 10px;
}

.irie-teller-option-table thead tr th:last-child {
    border-top-right-radius: 10px;
}

.irie-teller-option-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.irie-teller-option-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.irie-teller-option-table th {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 10px;
    text-align: center;
    border-top: none !important;
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid #c84b31;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
}

.irie-teller-option-table th:last-child {
    border-right: none !important;
}

.irie-teller-option-table td {
    padding: 12px 14px;
    border-top: none !important;
    border-left: none !important;
    border-right: 1px solid #c84b31;
    border-bottom: 1px solid #c84b31;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.45;
    vertical-align: middle;
    color: #333333;
}

.irie-teller-option-table tr:last-child td {
    border-bottom: none !important;
}

.irie-teller-option-table td:last-child {
    border-right: none !important;
}

.irie-teller-option-table td.col-name {
    width: 45%;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: visible;
}

.irie-teller-option-table td.col-duration {
    width: 25%;
    text-align: center;
}

.irie-teller-option-table td.col-price {
    width: 30%;
    text-align: center;
    font-weight: 700;
    color: #a01212;
}

/* Tooltip Styles */
.irie-option-name-text {
    vertical-align: middle;
}

.irie-option-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    color: #c84b31;
    cursor: help;
    position: relative;
    vertical-align: middle;
    outline: none;
}

.irie-option-tooltip-trigger:hover,
.irie-option-tooltip-trigger:focus {
    color: #a01212;
}

.irie-option-tooltip-trigger .irie-help-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
}

.irie-option-tooltip-trigger:hover .irie-help-icon {
    transform: scale(1.18);
}

.irie-option-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 260px;
    min-width: 140px;
    background-color: #2c2c2c;
    color: #ffffff;
    text-align: left;
    padding: 9px 13px;
    border-radius: 6px;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    white-space: normal;
    word-break: break-word;
}

/* Tooltip Arrow */
.irie-option-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2c2c2c transparent transparent transparent;
}

/* Hover & Focus state */
.irie-option-tooltip-trigger:hover .irie-option-tooltip-content,
.irie-option-tooltip-trigger:focus .irie-option-tooltip-content,
.irie-option-tooltip-trigger:focus-within .irie-option-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.irie-teller-option-empty {
    padding: 20px;
    text-align: center;
    color: #666666;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #c84b31;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
